Skip to content

Commit 49bbf41

Browse files
author
Sergey Glukhov
committed
Bug#26877788 SELECT FROM INFORMATION_SCHEMA.FILES RETURNS NO RECORDS WHEN ORDER BY IS USED
test case fix.
1 parent b5323d1 commit 49bbf41

File tree

2 files changed

+4
-34
lines changed

2 files changed

+4
-34
lines changed

mysql-test/r/information_schema.result

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,21 +2116,6 @@ ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_
21162116
#
21172117
# Bug#26877788 SELECT FROM INFORMATION_SCHEMA.FILES RETURNS NO RECORDS WHEN ORDER BY IS USED
21182118
#
2119-
EXPLAIN SELECT ENGINE, SUPPORT, TRANSACTIONS FROM INFORMATION_SCHEMA.ENGINES
2120-
WHERE
2121-
SUPPORT IN (
2122-
SELECT DISTINCT SUPPORT
2123-
FROM INFORMATION_SCHEMA.ENGINES
2124-
WHERE
2125-
ENGINE IN (
2126-
SELECT DISTINCT ENGINE FROM INFORMATION_SCHEMA.ENGINES
2127-
WHERE ENGINE IN ('MEMORY')))
2128-
ORDER BY ENGINE;
2129-
id select_type table type possible_keys key key_len ref rows Extra
2130-
1 SIMPLE ENGINES ALL NULL NULL NULL NULL NULL Using where; Using filesort
2131-
1 SIMPLE <subquery2> eq_ref <auto_key> <auto_key> 26 information_schema.ENGINES.SUPPORT 1 NULL
2132-
2 MATERIALIZED ENGINES ALL NULL NULL NULL NULL NULL Using where
2133-
2 MATERIALIZED ENGINES ALL NULL NULL NULL NULL NULL Using where; Using join buffer (Block Nested Loop)
21342119
SELECT ENGINE, SUPPORT, TRANSACTIONS FROM INFORMATION_SCHEMA.ENGINES
21352120
WHERE
21362121
SUPPORT IN (
@@ -2140,15 +2125,10 @@ WHERE
21402125
ENGINE IN (
21412126
SELECT DISTINCT ENGINE FROM INFORMATION_SCHEMA.ENGINES
21422127
WHERE ENGINE IN ('MEMORY')))
2143-
ORDER BY ENGINE;
2128+
ORDER BY ENGINE
2129+
LIMIT 1;
21442130
ENGINE SUPPORT TRANSACTIONS
21452131
ARCHIVE YES NO
2146-
BLACKHOLE YES NO
2147-
CSV YES NO
2148-
InnoDB YES YES
2149-
MEMORY YES NO
2150-
MRG_MYISAM YES NO
2151-
PERFORMANCE_SCHEMA YES NO
21522132
#
21532133
# End of 5.6 tests
21542134
#

mysql-test/t/information_schema.test

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,17 +1883,6 @@ CREATE PROCEDURE information_schema.is() BEGIN END;
18831883
--echo # Bug#26877788 SELECT FROM INFORMATION_SCHEMA.FILES RETURNS NO RECORDS WHEN ORDER BY IS USED
18841884
--echo #
18851885

1886-
EXPLAIN SELECT ENGINE, SUPPORT, TRANSACTIONS FROM INFORMATION_SCHEMA.ENGINES
1887-
WHERE
1888-
SUPPORT IN (
1889-
SELECT DISTINCT SUPPORT
1890-
FROM INFORMATION_SCHEMA.ENGINES
1891-
WHERE
1892-
ENGINE IN (
1893-
SELECT DISTINCT ENGINE FROM INFORMATION_SCHEMA.ENGINES
1894-
WHERE ENGINE IN ('MEMORY')))
1895-
ORDER BY ENGINE;
1896-
18971886
SELECT ENGINE, SUPPORT, TRANSACTIONS FROM INFORMATION_SCHEMA.ENGINES
18981887
WHERE
18991888
SUPPORT IN (
@@ -1903,7 +1892,8 @@ WHERE
19031892
ENGINE IN (
19041893
SELECT DISTINCT ENGINE FROM INFORMATION_SCHEMA.ENGINES
19051894
WHERE ENGINE IN ('MEMORY')))
1906-
ORDER BY ENGINE;
1895+
ORDER BY ENGINE
1896+
LIMIT 1;
19071897

19081898

19091899
--echo #

0 commit comments

Comments
 (0)