summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.(none)>2007-07-16 23:37:02 +0400
committerunknown <kostja@bodhi.(none)>2007-07-16 23:37:02 +0400
commitde2089264fcafa7f850c73382200ed1d5d91fdef (patch)
treead5fe7741c4bb3089b68693e0bd78ec7de3ebd8c /sql/sql_parse.cc
parent8023d91929247f1b2e2f81ca10daca4dde4ab2e2 (diff)
downloadmariadb-git-de2089264fcafa7f850c73382200ed1d5d91fdef.tar.gz
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. sql/sql_parse.cc: Ensure the fix for Bug#29050 works for information_schema tables.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 91c51641fc0..a765dfe891f 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -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);
}