summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorAnel Husakovic <anel@mariadb.org>2022-01-17 16:26:47 +0100
committerAnel Husakovic <anel@mariadb.org>2022-01-19 09:29:02 +0100
commit9cd6ecfe501bcbee04d2d203baa81c927664c9e2 (patch)
tree1a74b4c10ed107c1d8a10a71d81e3cb08bffd451 /sql
parent410c4edef30b3ac061f21aa712020a51337cff56 (diff)
downloadmariadb-git-9cd6ecfe501bcbee04d2d203baa81c927664c9e2.tar.gz
MDEV-18284: JSON casting using JSON_COMPACT doesn't always work with values from subqueries
- Cherry-pick 2fcff310d024cc2201586c568391ba8b039f0bf3 (MDEV-21902) - Closed PR #1145 Reviewed by: holyfoot@mariadb.com
Diffstat (limited to 'sql')
-rw-r--r--sql/item.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index 086d85e989f..290ff11a0f8 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -4564,6 +4564,7 @@ public:
{
return ref ? (*ref)->real_item() : this;
}
+ bool is_json_type() { return (*ref)->is_json_type(); }
bool walk(Item_processor processor, bool walk_subquery, void *arg)
{
if (ref && *ref)