mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-12459 post-review fixes
* IS_USER_TEMP_TABLE() was misleading, name didn't match the code * list of temp tables was rescanned number_of_databases times * some temporary tables were not shown (from nonexistent databases) * some temporary tables were shown more than once (e.g. after self-joins) * sys.table_exists() - avoid querying I_S twice * fix handling of temporary MERGE tables - it's pointless to fully open them, they're not in thd->temporary_tables, so they simply fail to open and are skipped. Relax the assertion instead.
This commit is contained in:
@@ -6,6 +6,7 @@ CREATE TABLE t2 (a int);
|
||||
CREATE TEMPORARY TABLE t2 (a int, b int);
|
||||
SHOW TABLES;
|
||||
Tables_in_test
|
||||
t2
|
||||
t1
|
||||
t2
|
||||
connection slave;
|
||||
@@ -28,6 +29,7 @@ connection master;
|
||||
CREATE TEMPORARY TABLE t2 (a int, b int);
|
||||
SHOW TABLES;
|
||||
Tables_in_test
|
||||
t2
|
||||
t1
|
||||
t2
|
||||
connection slave;
|
||||
|
Reference in New Issue
Block a user