Skip to content

Commit f83207e

Browse files
author
Sergey Glukhov
committed
Merge branch 'mysql-5.7' into mysql-8.0
2 parents d638721 + 5c02557 commit f83207e

File tree

3 files changed

+20
-36
lines changed

3 files changed

+20
-36
lines changed

mysql-test/r/information_schema.result

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,23 +1984,6 @@ ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_
19841984
#
19851985
# Bug#26877788 SELECT FROM INFORMATION_SCHEMA.FILES RETURNS NO RECORDS WHEN ORDER BY IS USED
19861986
#
1987-
EXPLAIN SELECT ENGINE, SUPPORT, TRANSACTIONS FROM INFORMATION_SCHEMA.ENGINES
1988-
WHERE
1989-
SUPPORT IN (
1990-
SELECT DISTINCT SUPPORT
1991-
FROM INFORMATION_SCHEMA.ENGINES
1992-
WHERE
1993-
ENGINE IN (
1994-
SELECT DISTINCT ENGINE FROM INFORMATION_SCHEMA.ENGINES
1995-
WHERE ENGINE IN ('MEMORY')))
1996-
ORDER BY ENGINE;
1997-
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1998-
1 SIMPLE <subquery2> NULL ALL NULL NULL NULL NULL NULL 100.00 Using temporary; Using filesort
1999-
1 SIMPLE ENGINES NULL ALL NULL NULL NULL NULL NULL NULL Using where; Using join buffer (Block Nested Loop)
2000-
2 MATERIALIZED ENGINES NULL ALL NULL NULL NULL NULL NULL NULL Using where
2001-
2 MATERIALIZED ENGINES NULL ALL NULL NULL NULL NULL NULL NULL Using where; Using join buffer (Block Nested Loop)
2002-
Warnings:
2003-
Note 1003 /* select#1 */ select `information_schema`.`ENGINES`.`ENGINE` AS `ENGINE`,`information_schema`.`ENGINES`.`SUPPORT` AS `SUPPORT`,`information_schema`.`ENGINES`.`TRANSACTIONS` AS `TRANSACTIONS` from `information_schema`.`ENGINES` semi join (`information_schema`.`ENGINES` join `information_schema`.`ENGINES`) where ((`information_schema`.`ENGINES`.`SUPPORT` = `<subquery2>`.`SUPPORT`) and (`information_schema`.`ENGINES`.`ENGINE` = `information_schema`.`ENGINES`.`ENGINE`) and (`information_schema`.`ENGINES`.`ENGINE` = 'MEMORY')) order by `information_schema`.`ENGINES`.`ENGINE`
20041987
SELECT ENGINE, SUPPORT, TRANSACTIONS FROM INFORMATION_SCHEMA.ENGINES
20051988
WHERE
20061989
SUPPORT IN (
@@ -2010,15 +1993,10 @@ WHERE
20101993
ENGINE IN (
20111994
SELECT DISTINCT ENGINE FROM INFORMATION_SCHEMA.ENGINES
20121995
WHERE ENGINE IN ('MEMORY')))
2013-
ORDER BY ENGINE;
1996+
ORDER BY ENGINE
1997+
LIMIT 1;
20141998
ENGINE SUPPORT TRANSACTIONS
20151999
ARCHIVE YES NO
2016-
BLACKHOLE YES NO
2017-
CSV YES NO
2018-
MEMORY YES NO
2019-
MRG_MYISAM YES NO
2020-
MyISAM YES NO
2021-
PERFORMANCE_SCHEMA YES NO
20222000
#
20232001
# End of 5.6 tests
20242002
#

mysql-test/r/information_schema_ci.result

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,6 +1982,22 @@ DROP TABLE t1;
19821982
CREATE PROCEDURE information_schema.is() BEGIN END;
19831983
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
19841984
#
1985+
# Bug#26877788 SELECT FROM INFORMATION_SCHEMA.FILES RETURNS NO RECORDS WHEN ORDER BY IS USED
1986+
#
1987+
SELECT ENGINE, SUPPORT, TRANSACTIONS FROM INFORMATION_SCHEMA.ENGINES
1988+
WHERE
1989+
SUPPORT IN (
1990+
SELECT DISTINCT SUPPORT
1991+
FROM INFORMATION_SCHEMA.ENGINES
1992+
WHERE
1993+
ENGINE IN (
1994+
SELECT DISTINCT ENGINE FROM INFORMATION_SCHEMA.ENGINES
1995+
WHERE ENGINE IN ('MEMORY')))
1996+
ORDER BY ENGINE
1997+
LIMIT 1;
1998+
ENGINE SUPPORT TRANSACTIONS
1999+
ARCHIVE YES NO
2000+
#
19852001
# End of 5.6 tests
19862002
#
19872003
#

mysql-test/t/information_schema.test

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

1808-
EXPLAIN SELECT ENGINE, SUPPORT, TRANSACTIONS FROM INFORMATION_SCHEMA.ENGINES
1809-
WHERE
1810-
SUPPORT IN (
1811-
SELECT DISTINCT SUPPORT
1812-
FROM INFORMATION_SCHEMA.ENGINES
1813-
WHERE
1814-
ENGINE IN (
1815-
SELECT DISTINCT ENGINE FROM INFORMATION_SCHEMA.ENGINES
1816-
WHERE ENGINE IN ('MEMORY')))
1817-
ORDER BY ENGINE;
1818-
18191808
SELECT ENGINE, SUPPORT, TRANSACTIONS FROM INFORMATION_SCHEMA.ENGINES
18201809
WHERE
18211810
SUPPORT IN (
@@ -1825,7 +1814,8 @@ WHERE
18251814
ENGINE IN (
18261815
SELECT DISTINCT ENGINE FROM INFORMATION_SCHEMA.ENGINES
18271816
WHERE ENGINE IN ('MEMORY')))
1828-
ORDER BY ENGINE;
1817+
ORDER BY ENGINE
1818+
LIMIT 1;
18291819

18301820

18311821
--echo #

0 commit comments

Comments
 (0)