mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-26724 Endless loop in json_escape_to_string upon ... empty string
Correctly handle empty string when [un]escaping JSON
This commit is contained in:
@ -7853,3 +7853,19 @@ test.t1 analyze status OK
|
||||
select * from t1 where a = 'foo';
|
||||
a
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-26724 Endless loop in json_escape_to_string upon ... empty string
|
||||
#
|
||||
CREATE TABLE t1 (f VARCHAR(8));
|
||||
INSERT INTO t1 VALUES ('a'),(''),('b');
|
||||
SET histogram_type=JSON_HB;
|
||||
ANALYZE TABLE t PERSISTENT FOR ALL;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t analyze Error Table 'test.t' doesn't exist
|
||||
test.t analyze status Operation failed
|
||||
select * from t1;
|
||||
f
|
||||
a
|
||||
|
||||
b
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user