mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-12363 Assertion `0' failed in Type_handler_string_result::make_sort_key(uchar*, Item*, const SORT_FIELD_ATTR*, Sort_param*).
maybe_null wasn't properly set for Item_json_func_keys.
This commit is contained in:
@ -636,3 +636,9 @@ JSON_SEARCH('{"foo":"bar"}', 'all' , @str, '%', @path)
|
||||
SELECT JSON_VALUE('[{"foo": 1},"bar"]', '$[*][0]');
|
||||
JSON_VALUE('[{"foo": 1},"bar"]', '$[*][0]')
|
||||
bar
|
||||
CREATE TABLE t1 (f INT NOT NULL);
|
||||
INSERT INTO t1 VALUES (0);
|
||||
SELECT JSON_KEYS(f) FROM t1 ORDER BY 1;
|
||||
JSON_KEYS(f)
|
||||
NULL
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user