1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

EXISTS(SELECT * ...)

close table before opening in optimize
This commit is contained in:
bell@sanja.is.com.ua
2004-06-10 21:33:15 +03:00
parent 5f235eb828
commit be642b9bcd
4 changed files with 39 additions and 4 deletions

View File

@ -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)) &&