diff options
author | unknown <bell@sanja.is.com.ua> | 2004-06-10 21:33:15 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-06-10 21:33:15 +0300 |
commit | d9b81f3a084c362d9948504b59149bade9eb4229 (patch) | |
tree | f035e112c3312d9754f9971c9d02ca260d43d40e /sql/sql_table.cc | |
parent | f9ec1ff25a7c645b21973a347126503e4247e020 (diff) | |
download | mariadb-git-d9b81f3a084c362d9948504b59149bade9eb4229.tar.gz |
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
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 4dd4b85c9fc..aea6140226c 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -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)) && |