mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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.
This commit is contained in:
@ -618,3 +618,14 @@ connection default;
|
||||
set @@global.max_allowed_packet = default;
|
||||
set @@global.net_buffer_length = default;
|
||||
disconnect newconn;
|
||||
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;
|
||||
j p json_remove(j, p)
|
||||
{"a":1,"b":2,"c":3} $.a {"b": 2, "c": 3}
|
||||
{"a":1,"b":2,"c":3} $.b {"a": 1, "c": 3}
|
||||
{"a":1,"b":2,"c":3} $.c {"a": 1, "b": 2}
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user