Commit a2d6941b authored by unknown's avatar unknown

sql_view.cc:

  Post-merge fix.


sql/sql_view.cc:
  Post-merge fix.
parent c6d0a5e9
...@@ -1055,7 +1055,8 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table, ...@@ -1055,7 +1055,8 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table,
Use view db name as thread default database, in order to ensure Use view db name as thread default database, in order to ensure
that the view is parsed and prepared correctly. that the view is parsed and prepared correctly.
*/ */
if ((result= sp_use_new_db(thd, table->view_db, &old_db, 1, &dbchanged))) if ((result= mysql_opt_change_db(thd, &table->view_db, &old_db, 1,
&dbchanged)))
goto end; goto end;
lex_start(thd); lex_start(thd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment