1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

Unlock tables on BEGIN

This commit is contained in:
monty@tik.mysql.fi
2001-09-08 01:01:10 +03:00
parent 9570e8b92c
commit fcb7292e48
4 changed files with 20 additions and 5 deletions

View File

@@ -2120,6 +2120,12 @@ mysql_execute_command(void)
break;
case SQLCOM_BEGIN:
if (thd->locked_tables)
{
thd->lock=thd->locked_tables;
thd->locked_tables=0; // Will be automaticly closed
close_thread_tables(thd); // Free tables
}
if (end_active_trans(thd))
{
res= -1;