summaryrefslogtreecommitdiff
path: root/mysql-test/include
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-10-31 13:00:20 +0400
committerAlexander Barkov <bar@mariadb.org>2017-10-31 13:00:20 +0400
commit5d3ed9acdda80828f7f3be8f7322b3e8366eab5f (patch)
treef2b0c44e9429a0aaf0d4af63c9a66ae870b2ff35 /mysql-test/include
parent835cbbcc7b797188a89671019f2b2844e1a14e0c (diff)
downloadmariadb-git-5d3ed9acdda80828f7f3be8f7322b3e8366eab5f.tar.gz
(Part#2) MDEV-13049 Querying INFORMATION_SCHEMA becomes slow in MariaDB 10.1
This is a 10.3 specific part of MDEV-13049. It disables automatic sorting for "SELECT .. FROM INFORMATION_SCHEMA.{SCHEMATA|TABLES}" and adjusts the affected tests accordingly.
Diffstat (limited to 'mysql-test/include')
-rw-r--r--mysql-test/include/mtr_check.sql6
1 files changed, 4 insertions, 2 deletions
diff --git a/mysql-test/include/mtr_check.sql b/mysql-test/include/mtr_check.sql
index 89f9f66ae1d..f2c0b70e192 100644
--- a/mysql-test/include/mtr_check.sql
+++ b/mysql-test/include/mtr_check.sql
@@ -39,12 +39,14 @@ BEGIN
-- Dump all databases, there should be none
-- except those that was created during bootstrap
- SELECT * FROM INFORMATION_SCHEMA.SCHEMATA;
+ SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY BINARY SCHEMA_NAME;
-- and the mtr_wsrep_notify schema which is populated by the std_data/wsrep_notify.sh script
-- and the suite/galera/t/galera_var_notify_cmd.test
-- and the wsrep_schema schema that may be created by Galera
- SELECT * FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME NOT IN ('mtr_wsrep_notify', 'wsrep_schema');
+ SELECT * FROM INFORMATION_SCHEMA.SCHEMATA
+ WHERE SCHEMA_NAME NOT IN ('mtr_wsrep_notify', 'wsrep_schema')
+ ORDER BY BINARY SCHEMA_NAME;
-- The test database should not contain any tables
SELECT table_name AS tables_in_test FROM INFORMATION_SCHEMA.TABLES