1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug#29050 Creation of a legal stored procedure fails if a database is not

selected prior: ensure the fix also works for information_schema
tables.
This commit is contained in:
kostja@bodhi.(none)
2007-07-16 23:37:02 +04:00
parent 5466b0df14
commit 1ecb226efa

View File

@ -2272,7 +2272,7 @@ int prepare_schema_table(THD *thd, LEX *lex, Table_ident *table_ident,
DBUG_RETURN(1);
#else
if (lex->select_lex.db == NULL &&
thd->copy_db_to(&lex->select_lex.db, NULL))
lex->copy_db_to(&lex->select_lex.db, NULL))
{
DBUG_RETURN(1);
}