summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 5032e9c33f0..5b1b18e80e4 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -190,7 +190,7 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list,
else
#endif /* EMBEDDED_LIBRARY */
res= open_and_lock_tables(thd, table_list);
- if (res)
+ if (res || thd->is_fatal_error)
DBUG_RETURN(-1);
table= table_list->table;