diff options
author | unknown <monty@tik.mysql.fi> | 2002-03-21 23:06:48 +0200 |
---|---|---|
committer | unknown <monty@tik.mysql.fi> | 2002-03-21 23:06:48 +0200 |
commit | c0a5e4707168e03e89191261b7a5ec95ffbc99d7 (patch) | |
tree | 63e54a056bcd09390054202f9c5fad2985ab8f2d /sql/lock.cc | |
parent | b70f53b28940008233995d885584c2e0984e3bf4 (diff) | |
download | mariadb-git-c0a5e4707168e03e89191261b7a5ec95ffbc99d7.tar.gz |
Quote names to SHOW CREATE for mysqldump
Fix thread-related bug when doing DROP TABLE
Fix bug in RENAME TABLE on windows
Docs/manual.texi:
Changelog
client/mysqldump.c:
Quote names to SHOW CREATE
mysql-test/t/range.test:
Test case for range bug
sql/lock.cc:
Fix thread-related bug when doing DROP TABLE
sql/sql_base.cc:
Fix thread-related bug when doing DROP TABLE
sql/sql_rename.cc:
Fix bug in RENAME TABLE on windows
Diffstat (limited to 'sql/lock.cc')
-rw-r--r-- | sql/lock.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/lock.cc b/sql/lock.cc index aa06822e03f..a9054b99186 100644 --- a/sql/lock.cc +++ b/sql/lock.cc @@ -108,6 +108,13 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd,TABLE **tables,uint count) thd->locked=0; break; } + else if (!thd->open_tables) + { + // Only using temporary tables, no need to unlock + thd->some_tables_deleted=0; + thd->locked=0; + break; + } /* some table was altered or deleted. reopen tables marked deleted */ mysql_unlock_tables(thd,sql_lock); |