1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Changes to make ALTER TABLE and DELETE FROM TABLE work properly

with BEGIN WORK.
This commit is contained in:
tim@threads.polyesthetic.msg
2000-11-07 01:52:43 -05:00
parent aacaaf5922
commit 4647982ee9
2 changed files with 4 additions and 2 deletions

View File

@ -1150,7 +1150,8 @@ mysql_execute_command(void)
}
}
/* ALTER TABLE ends previous transaction */
if (!(thd->options & OPTION_AUTO_COMMIT) && ha_commit(thd))
if ((!(thd->options & OPTION_AUTO_COMMIT) ||
(thd->options & OPTION_BEGIN)) && ha_commit(thd))
res= -1;
else
res= mysql_alter_table(thd, lex->db, lex->name,