From 908c48a34dd94350c87c89a32937bf32399c3ab4 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 18 Dec 2022 14:30:36 +0100 Subject: [PATCH] fixes for json.json_table and main.func_json in --ps --- sql/item.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/item.cc b/sql/item.cc index 03e6ffb5715..02220fd56bd 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -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; }