mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
EXISTS(SELECT * ...)
close table before opening in optimize mysql-test/r/subselect.result: test of EXISTS(SELECT * ...) mysql-test/t/subselect.test: test of EXISTS(SELECT * ...) sql/sql_base.cc: EXISTS(SELECT * ...) sql/sql_table.cc: close table before opening one
This commit is contained in:
@@ -1861,6 +1861,7 @@ send_result_message:
|
||||
TABLE_LIST *save_next= table->next;
|
||||
table->next= 0;
|
||||
result_code= mysql_recreate_table(thd, table, 0);
|
||||
close_thread_tables(thd);
|
||||
if (!result_code) // recreation went ok
|
||||
{
|
||||
if ((table->table= open_ltable(thd, table, lock_type)) &&
|
||||
|
||||
Reference in New Issue
Block a user