diff options
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/suite/perfschema/r/discovery.result | 12 | ||||
-rw-r--r-- | mysql-test/suite/perfschema/t/discovery.test | 15 |
2 files changed, 27 insertions, 0 deletions
diff --git a/mysql-test/suite/perfschema/r/discovery.result b/mysql-test/suite/perfschema/r/discovery.result new file mode 100644 index 00000000000..2f939cae154 --- /dev/null +++ b/mysql-test/suite/perfschema/r/discovery.result @@ -0,0 +1,12 @@ +# +# 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 diff --git a/mysql-test/suite/perfschema/t/discovery.test b/mysql-test/suite/perfschema/t/discovery.test new file mode 100644 index 00000000000..811e99da705 --- /dev/null +++ b/mysql-test/suite/perfschema/t/discovery.test @@ -0,0 +1,15 @@ +--source include/not_embedded.inc +--source include/have_perfschema.inc + +--echo # +--echo # MDEV-7922 - ERROR 1939 (HY000): Engine PERFORMANCE_SCHEMA failed to +--echo # discover table +--echo # +FLUSH TABLES; +CREATE DATABASE test_drop; +USE test_drop; +DROP DATABASE test_drop; +--disable_result_log +SELECT TABLE_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='performance_schema'; +--enable_result_log +SELECT @@warning_count; |