mirror of
https://github.com/MariaDB/server.git
synced 2025-02-22 13:23:07 +01:00

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
|