summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authorjimw@mysql.com <>2004-12-03 00:39:55 +0100
committerjimw@mysql.com <>2004-12-03 00:39:55 +0100
commit4b8e96d5ca349209a4ab0889df6e18b66aa27097 (patch)
tree53ebea55676a1cbab3ffb260b9f465ae28508351 /sql/sql_insert.cc
parenteb6c38fe9c129c238fbfc2defbcd832284c0d7b8 (diff)
parent13649d90ae90257620461cdd97bbf217bd1b1755 (diff)
downloadmariadb-git-4b8e96d5ca349209a4ab0889df6e18b66aa27097.tar.gz
Merge
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc12
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();