summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/item.cc b/sql/item.cc
index be7efaaa3f0..e5b1ef6cf39 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -414,7 +414,7 @@ Item::Item(THD *thd):
{
DBUG_ASSERT(thd);
maybe_null= with_window_func= with_field= in_rollup= with_param= 0;
- is_in_with_cycle= with_sum_func= 0;
+ is_in_with_cycle= with_sum_func= with_subquery= 0;
fixed= 1; // Simple Item's doesn't have to be fixed
is_autogenerated_name= 1;
null_value= 0;
@@ -487,6 +487,7 @@ Item::Item(THD *thd, Item *item):
is_autogenerated_name(item->is_autogenerated_name),
is_in_with_cycle(item->is_in_with_cycle),
with_sum_func(item->with_sum_func),
+ with_subquery(item->with_subquery),
marker(item->marker),
null_value(item->null_value),
is_expensive_cache(-1),
@@ -8568,10 +8569,10 @@ Item_cache_wrapper::Item_cache_wrapper(THD *thd, Item *item_arg):
Type_std_attributes::set(orig_item);
maybe_null= orig_item->maybe_null;
with_sum_func= orig_item->with_sum_func;
+ with_subquery= orig_item->with_subquery;
with_param= orig_item->with_param;
with_field= orig_item->with_field;
name= item_arg->name;
- m_with_subquery= orig_item->with_subquery();
if ((expr_value= orig_item->get_cache(thd)))
expr_value->setup(thd, orig_item);