summaryrefslogtreecommitdiff
path: root/sql/sql_tvc.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2017-10-23 15:12:37 +0300
committerAleksey Midenkov <midenok@gmail.com>2017-11-13 19:11:02 +0300
commit7ebd12e779bea5e881158234fb7164c787ecf4fd (patch)
tree227caeec3f513b9d07916ca2c862671c53ecc8bb /sql/sql_tvc.cc
parentd70bb5e64e798672eab1eadc70e2940e32a9478e (diff)
downloadmariadb-git-7ebd12e779bea5e881158234fb7164c787ecf4fd.tar.gz
SQL: VIEW of UNION [fixes #293]
Diffstat (limited to 'sql/sql_tvc.cc')
-rw-r--r--sql/sql_tvc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_tvc.cc b/sql/sql_tvc.cc
index 8c8e132746e..7b4a9596afd 100644
--- a/sql/sql_tvc.cc
+++ b/sql/sql_tvc.cc
@@ -241,7 +241,7 @@ bool table_value_constr::prepare(THD *thd, SELECT_LEX *sl,
/* Error's in 'new' will be detected after loop */
Item_type_holder *new_holder= new (thd->mem_root)
Item_type_holder(thd,
- &item->name,
+ item,
holders[pos].type_handler(),
&holders[pos]/*Type_all_attributes*/,
holders[pos].get_maybe_null());