Commit 5e42c0de authored by unknown's avatar unknown
Browse files

sql_view.cc:

  Post fix for bug#12122.
information_schema.result:
  Corrected test case after fixing bug#12122.


sql/sql_view.cc:
  Post fix for bug#12122.
mysql-test/r/information_schema.result:
  Corrected test case after fixing bug#12122.
parent a544b64f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1262,8 +1262,7 @@ from information_schema.tables
order by object_schema;
explain select * from v1;
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
2	DERIVED	tables	ALL	NULL	NULL	NULL	NULL	2	Using filesort
1	SIMPLE	tables	ALL	NULL	NULL	NULL	NULL	2	Using filesort
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
1	PRIMARY	<derived2>	system	NULL	NULL	NULL	NULL	0	const row not found
+1 −0
Original line number Diff line number Diff line
@@ -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
	will not be executed
      */
      table->select_lex->order_list.push_back(&lex->select_lex.order_list);
      goto ok;
    }