From 33e51ec729adf6dcfa4b394767686c827264109d Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 13 Sep 2007 02:09:29 +0500 Subject: [PATCH] sql_view.cc: Post-merge fix. sql/sql_view.cc: Post-merge fix. --- sql/sql_view.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/sql_view.cc b/sql/sql_view.cc index b444992f4e9..56d50761d95 100644 --- a/sql/sql_view.cc +++ b/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);