Skip to content

Commit

Permalink
fixes for json.json_table and main.func_json in --ps
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Jan 1, 2023
1 parent 60f646e commit 908c48a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/item.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2468,7 +2468,8 @@ void Item::split_sum_func2(THD *thd, Ref_ptr_array ref_pointer_array,

if (unlikely((!(used_tables() & ~PARAM_TABLE_BIT) ||
(type() == REF_ITEM &&
((Item_ref*)this)->ref_type() != Item_ref::VIEW_REF))))
((Item_ref*)this)->ref_type() != Item_ref::VIEW_REF &&
((Item_ref*)this)->ref_type() != Item_ref::DIRECT_REF))))
return;
}

Expand Down

0 comments on commit 908c48a

Please sign in to comment.