diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2017-03-20 15:18:06 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2017-03-20 15:18:06 +0400 |
commit | 76f6c1e1ed2c48594832e20035cd15fec9c35d94 (patch) | |
tree | 4689c538b1e9a40042d5e46b339c644dac674725 /mysql-test/t/func_json.test | |
parent | a06da5c848e6feeef0b1559e84479890a76c446e (diff) | |
download | mariadb-git-76f6c1e1ed2c48594832e20035cd15fec9c35d94.tar.gz |
MDEV-12262 Assertion `!null_value' failed in virtual bool Item::send on
JSON_REMOVE.
null_value wasn't properly set in Item_json_func_remove::val_str.
Diffstat (limited to 'mysql-test/t/func_json.test')
-rw-r--r-- | mysql-test/t/func_json.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/func_json.test b/mysql-test/t/func_json.test index 74692c475f4..72b8681ac44 100644 --- a/mysql-test/t/func_json.test +++ b/mysql-test/t/func_json.test @@ -263,3 +263,14 @@ set @@global.max_allowed_packet = default; set @@global.net_buffer_length = default; --disconnect newconn + +# +# MDEV-12262 Assertion `!null_value' failed in virtual bool Item::send on JSON_REMOVE. +# +create table t1(j longtext, p longtext); +insert into t1 values + ('{"a":1,"b":2,"c":3}','$.a'), + ('{"a":1,"b":2,"c":3}','$.b'), + ('{"a":1,"b":2,"c":3}','$.c'); +select j, p, json_remove(j, p) from t1; +drop table t1; |