summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2022-12-18 14:30:36 +0100
committerSergei Golubchik <serg@mariadb.org>2023-01-02 00:04:03 +0100
commit908c48a34dd94350c87c89a32937bf32399c3ab4 (patch)
treee158e33ec69b21f03eac65c4a1bfb47cb9ffece8
parent60f646e2f3fefa7909538ca8982393b74a9bf5f2 (diff)
downloadmariadb-git-908c48a34dd94350c87c89a32937bf32399c3ab4.tar.gz
fixes for json.json_table and main.func_json in --ps
-rw-r--r--sql/item.cc3
1 files changed, 2 insertions, 1 deletions
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;
}