mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Clean-up, give better names, add comments to
thd->in_multi_stmt_transaction() and thd->active_transaction().
This commit is contained in:
@ -54,7 +54,7 @@ bool mysql_rename_tables(THD *thd, TABLE_LIST *table_list, bool silent)
|
||||
if the user is trying to to do this in a transcation context
|
||||
*/
|
||||
|
||||
if (thd->locked_tables_mode || thd->active_transaction())
|
||||
if (thd->locked_tables_mode || thd->in_active_multi_stmt_transaction())
|
||||
{
|
||||
my_message(ER_LOCK_OR_ACTIVE_TRANSACTION,
|
||||
ER(ER_LOCK_OR_ACTIVE_TRANSACTION), MYF(0));
|
||||
|
Reference in New Issue
Block a user