summaryrefslogtreecommitdiff
path: root/sql/sql_delete.cc
diff options
context:
space:
mode:
authorunknown <tim@threads.polyesthetic.msg>2000-11-07 01:52:43 -0500
committerunknown <tim@threads.polyesthetic.msg>2000-11-07 01:52:43 -0500
commitd3949f4c7dcc6cfbc53db3c35412b8aac449ce16 (patch)
treed509b08589a44f70e0e195525d348ca7e5964128 /sql/sql_delete.cc
parent29375b48a3c2b9480c96812f3bb513baef2e300d (diff)
downloadmariadb-git-d3949f4c7dcc6cfbc53db3c35412b8aac449ce16.tar.gz
Changes to make ALTER TABLE and DELETE FROM TABLE work properly
with BEGIN WORK.
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r--sql/sql_delete.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc
index 2e6bea7239e..29526b4d7d5 100644
--- a/sql/sql_delete.cc
+++ b/sql/sql_delete.cc
@@ -141,7 +141,8 @@ int mysql_delete(THD *thd,TABLE_LIST *table_list,COND *conds,ha_rows limit,
use_generate_table= (!using_limit && !conds &&
!(specialflag &
(SPECIAL_NO_NEW_FUNC | SPECIAL_SAFE_MODE)) &&
- (thd->options & OPTION_AUTO_COMMIT));
+ (thd->options & OPTION_AUTO_COMMIT) &&
+ !(thd->options & OPTION_BEGIN));
if (use_generate_table && ! thd->open_tables)
{
error=generate_table(thd,table_list,(TABLE*) 0);