mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
Follow-up for Bug #55930 Assertion `thd->transaction.stmt.is_empty()
|| thd->in_sub_stmt || (thd->state.. Don't rollback statement transactions if we are in a sub-statement. This could for example happen for open_ltable() when opening the general log during execution of a stored procedure.
This commit is contained in:
parent
4eb324693f
commit
7774a0048a
1 changed files with 2 additions and 1 deletions
|
@ -5320,7 +5320,8 @@ TABLE *open_ltable(THD *thd, TABLE_LIST *table_list, thr_lock_type lock_type,
|
|||
end:
|
||||
if (table == NULL)
|
||||
{
|
||||
trans_rollback_stmt(thd);
|
||||
if (!thd->in_sub_stmt)
|
||||
trans_rollback_stmt(thd);
|
||||
close_thread_tables(thd);
|
||||
}
|
||||
thd_proc_info(thd, 0);
|
||||
|
|
Loading…
Reference in a new issue