summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_json.test
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2021-10-11 15:05:44 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2021-10-11 15:05:44 +0400
commit42968ae75e7cd0763a2a2cbcce4ea99faaf27351 (patch)
tree88e0bfd84888783a2803068f21d4e16e0f2616ee /mysql-test/t/func_json.test
parent3690c549c6e72646ba74f6b4c83813ee4ac3aea4 (diff)
downloadmariadb-git-bb-mdev-24585-hf.tar.gz
MDEV-24585 Assertion `je->s.cs == nice_js->charset()' failed in json_nice.bb-mdev-24585-hf
We should set the charset in Item_func_json_format::fix_length_and_dec().
Diffstat (limited to 'mysql-test/t/func_json.test')
-rw-r--r--mysql-test/t/func_json.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/t/func_json.test b/mysql-test/t/func_json.test
index 805e9954b81..e4e093225f8 100644
--- a/mysql-test/t/func_json.test
+++ b/mysql-test/t/func_json.test
@@ -555,5 +555,11 @@ SELECT
--echo #
+--echo # MDEV-24585 Assertion `je->s.cs == nice_js->charset()' failed in json_nice.
+--echo #
+
+SELECT JSON_REPLACE( JSON_DETAILED('["x"]'), '$.a', 'xx' );
+
+--echo #
--echo # End of 10.2 tests
--echo #