summaryrefslogtreecommitdiff
path: root/sql/item_jsonfunc.cc
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2018-11-09 22:55:34 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2018-11-09 22:55:34 +0400
commit5cfb043d2919439fccfa350edd9a3fdb4aaf229b (patch)
tree221c2f15e5dfc32ad02b4731fadea3df4fbb8022 /sql/item_jsonfunc.cc
parentf5bcf788e76c2cb5da5ddecdb6ff9b2f766b1a49 (diff)
downloadmariadb-git-5cfb043d2919439fccfa350edd9a3fdb4aaf229b.tar.gz
MDEV-16174 Assertion `0' failed in Type_handler_string_result::make_sort_key(uchar*, Item*, const SORT_FIELD_ATTR*, Sort_param*)
maybe_null should be always set to TRUE in Item_func_json_array_append::fix_length_and_dec()
Diffstat (limited to 'sql/item_jsonfunc.cc')
-rw-r--r--sql/item_jsonfunc.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_jsonfunc.cc b/sql/item_jsonfunc.cc
index 60726050aca..27bc97f4c5e 100644
--- a/sql/item_jsonfunc.cc
+++ b/sql/item_jsonfunc.cc
@@ -1562,6 +1562,7 @@ bool Item_func_json_array_append::fix_length_and_dec()
}
fix_char_length_ulonglong(char_length);
+ maybe_null= 1;
return FALSE;
}