Browse Source

sql_view.cc:

Post-merge fix.


sql/sql_view.cc:
  Post-merge fix.
pull/374/head
unknown 18 years ago
parent
commit
33e51ec729
  1. 3
      sql/sql_view.cc

3
sql/sql_view.cc

@ -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
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;
lex_start(thd);

Loading…
Cancel
Save