File tree 3 files changed +66
-2
lines changed
3 files changed +66
-2
lines changed Original file line number Diff line number Diff line change @@ -2114,5 +2114,41 @@ DROP TABLE t1;
2114
2114
CREATE PROCEDURE information_schema.is() BEGIN END;
2115
2115
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
2116
2116
#
2117
+ # Bug#26877788 SELECT FROM INFORMATION_SCHEMA.FILES RETURNS NO RECORDS WHEN ORDER BY IS USED
2118
+ #
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)
2134
+ SELECT ENGINE, SUPPORT, TRANSACTIONS FROM INFORMATION_SCHEMA.ENGINES
2135
+ WHERE
2136
+ SUPPORT IN (
2137
+ SELECT DISTINCT SUPPORT
2138
+ FROM INFORMATION_SCHEMA.ENGINES
2139
+ WHERE
2140
+ ENGINE IN (
2141
+ SELECT DISTINCT ENGINE FROM INFORMATION_SCHEMA.ENGINES
2142
+ WHERE ENGINE IN ('MEMORY')))
2143
+ ORDER BY ENGINE;
2144
+ ENGINE SUPPORT TRANSACTIONS
2145
+ 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
2152
+ #
2117
2153
# End of 5.6 tests
2118
2154
#
Original file line number Diff line number Diff line change @@ -1878,6 +1878,34 @@ DROP TABLE t1;
1878
1878
--error ER_DBACCESS_DENIED_ERROR
1879
1879
CREATE PROCEDURE information_schema.is() BEGIN END;
1880
1880
1881
+
1882
+ --echo #
1883
+ --echo # Bug#26877788 SELECT FROM INFORMATION_SCHEMA.FILES RETURNS NO RECORDS WHEN ORDER BY IS USED
1884
+ --echo #
1885
+
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
+
1897
+ SELECT ENGINE, SUPPORT, TRANSACTIONS FROM INFORMATION_SCHEMA.ENGINES
1898
+ WHERE
1899
+ SUPPORT IN (
1900
+ SELECT DISTINCT SUPPORT
1901
+ FROM INFORMATION_SCHEMA.ENGINES
1902
+ WHERE
1903
+ ENGINE IN (
1904
+ SELECT DISTINCT ENGINE FROM INFORMATION_SCHEMA.ENGINES
1905
+ WHERE ENGINE IN ('MEMORY')))
1906
+ ORDER BY ENGINE;
1907
+
1908
+
1881
1909
--echo #
1882
1910
--echo # End of 5.6 tests
1883
1911
--echo #
Original file line number Diff line number Diff line change 1
- /* Copyright (c) 2000, 2016 , Oracle and/or its affiliates. All rights reserved.
1
+ /* Copyright (c) 2000, 2017 , Oracle and/or its affiliates. All rights reserved.
2
2
3
3
This program is free software; you can redistribute it and/or modify
4
4
it under the terms of the GNU General Public License as published by
@@ -7484,7 +7484,7 @@ bool get_schema_tables_result(JOIN *join,
7484
7484
{
7485
7485
JOIN_TAB *const tab= join->join_tab + i;
7486
7486
if (!tab->table || !tab->table ->pos_in_table_list )
7487
- break ;
7487
+ continue ;
7488
7488
7489
7489
TABLE_LIST *table_list= tab->table ->pos_in_table_list ;
7490
7490
if (table_list->schema_table && thd->fill_information_schema_tables ())
You can’t perform that action at this time.
0 commit comments