mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
0fcc350f73
table Performance schema discovery fails if connection has no active database set. This happened due to restriction in SQL parser: table name with no database name is ambiguous in such case. Fixed by temporary substitution of default database with being discovered table database.
12 lines
328 B
Text
12 lines
328 B
Text
#
|
|
# MDEV-7922 - ERROR 1939 (HY000): Engine PERFORMANCE_SCHEMA failed to
|
|
# discover table
|
|
#
|
|
FLUSH TABLES;
|
|
CREATE DATABASE test_drop;
|
|
USE test_drop;
|
|
DROP DATABASE test_drop;
|
|
SELECT TABLE_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='performance_schema';
|
|
SELECT @@warning_count;
|
|
@@warning_count
|
|
0
|