mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/dlenev/src/mysql-5.0-bg13825 sql/ha_innodb.cc: Auto merged sql/handler.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_parse.cc: Auto merged
This commit is contained in:
commit
e2de3a8fc4
7 changed files with 411 additions and 14 deletions
|
|
@ -2198,11 +2198,13 @@ innobase_savepoint(
|
|||
|
||||
DBUG_ENTER("innobase_savepoint");
|
||||
|
||||
if (!(thd->options & (OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN))) {
|
||||
/* In the autocommit state there is no sense to set a
|
||||
savepoint: we return immediate success */
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
/*
|
||||
In the autocommit mode there is no sense to set a savepoint
|
||||
(unless we are in sub-statement), so SQL layer ensures that
|
||||
this method is never called in such situation.
|
||||
*/
|
||||
DBUG_ASSERT(thd->options & (OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN) ||
|
||||
thd->in_sub_stmt);
|
||||
|
||||
trx = check_trx_exists(thd);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue