mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
sql_view.cc:
Post fix for bug#12122. information_schema.result: Corrected test case after fixing bug#12122.
This commit is contained in:
@ -1262,8 +1262,7 @@ from information_schema.tables
|
|||||||
order by object_schema;
|
order by object_schema;
|
||||||
explain select * from v1;
|
explain select * from v1;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 PRIMARY <derived2> system NULL NULL NULL NULL 0 const row not found
|
1 SIMPLE tables ALL NULL NULL NULL NULL 2 Using filesort
|
||||||
2 DERIVED tables ALL NULL NULL NULL NULL 2 Using filesort
|
|
||||||
explain select * from (select table_name from information_schema.tables) as a;
|
explain select * from (select table_name from information_schema.tables) as a;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 PRIMARY <derived2> system NULL NULL NULL NULL 0 const row not found
|
1 PRIMARY <derived2> system NULL NULL NULL NULL 0 const row not found
|
||||||
|
@ -1263,6 +1263,7 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table,
|
|||||||
but it will not be included to SELECT_LEX tree, because it
|
but it will not be included to SELECT_LEX tree, because it
|
||||||
will not be executed
|
will not be executed
|
||||||
*/
|
*/
|
||||||
|
table->select_lex->order_list.push_back(&lex->select_lex.order_list);
|
||||||
goto ok;
|
goto ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user