mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-19628 JSON with starting double quotes key is not valid.
First character of the key name is just skipped, so the escapement wasn't handled properly.
This commit is contained in:
@ -568,6 +568,16 @@ SELECT
|
||||
SELECT json_valid('{"value":"\\ud83d\\ude0a"}');
|
||||
SELECT json_valid('{"test": "\\ud83d\\ude0b"}');
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-19670 json escaped unicode parse error
|
||||
--echo #
|
||||
|
||||
SELECT JSON_VALID('{"admin\\"": null}'), '{"admin\\"": null}'
|
||||
UNION
|
||||
SELECT JSON_VALID('{"\\"admin": null}'), '{"\\"admin": null}'
|
||||
UNION
|
||||
SELECT JSON_VALID('{"\\"": null}'), '{"\\"": null}';
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.3 tests
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user