summaryrefslogtreecommitdiff
path: root/sql/item_create.cc
diff options
context:
space:
mode:
authoriggy@recycle.(none) <>2007-03-29 11:12:12 -0400
committeriggy@recycle.(none) <>2007-03-29 11:12:12 -0400
commitd41cffc09a946d4c8a8dc62ee1f6768d82876398 (patch)
tree14bbae6fb1546e1d0acc5ace4a9e3450c777ab9e /sql/item_create.cc
parent4f498dec3af9d882f9a93f3f2df0aeeb669a2a09 (diff)
downloadmariadb-git-d41cffc09a946d4c8a8dc62ee1f6768d82876398.tar.gz
Bug #23491 MySQLDump prefix function call in a view by database name
- 5.0 merged to 5.1 differences.
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r--sql/item_create.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc
index ff5825ef389..617a24fac45 100644
--- a/sql/item_create.cc
+++ b/sql/item_create.cc
@@ -167,7 +167,7 @@ class Create_sp_func : public Create_qfunc
{
public:
virtual Item* create(THD *thd, LEX_STRING db, LEX_STRING name,
- List<Item> *item_list);
+ bool use_explicit_name, List<Item> *item_list);
static Create_sp_func s_singleton;
@@ -2316,7 +2316,7 @@ Create_qfunc::create(THD *thd, LEX_STRING name, List<Item> *item_list)
if (thd->copy_db_to(&db.str, &db.length))
return NULL;
- return create(thd, db, name, item_list);
+ return create(thd, db, name, false, item_list);
}
@@ -2433,7 +2433,7 @@ Create_sp_func Create_sp_func::s_singleton;
Item*
Create_sp_func::create(THD *thd, LEX_STRING db, LEX_STRING name,
- List<Item> *item_list)
+ bool use_explicit_name, List<Item> *item_list)
{
int arg_count= 0;
Item *func= NULL;
@@ -2458,7 +2458,7 @@ Create_sp_func::create(THD *thd, LEX_STRING db, LEX_STRING name,
if (item_list != NULL)
arg_count= item_list->elements;
- qname= new (thd->mem_root) sp_name(db, name);
+ qname= new (thd->mem_root) sp_name(db, name, use_explicit_name);
qname->init_qname(thd);
sp_add_used_routine(lex, thd, qname, TYPE_ENUM_FUNCTION);