diff options
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index d590d3b5093..d63bb29affa 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -1667,6 +1667,18 @@ bool select_create::send_data(List<Item> &values) } +void select_create::send_error(uint errcode,const char *err) +{ + /* + Disable binlog, because we "roll back" partial inserts in ::abort + by removing the table, even for non-transactional tables. + */ + tmp_disable_binlog(thd); + select_insert::send_error(errcode, err); + reenable_binlog(thd); +} + + bool select_create::send_eof() { bool tmp=select_insert::send_eof(); |