1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

MDEV-13138 JSON_OBJECT returns null with strings containing backticks.

Condition was fixed.
This commit is contained in:
Alexey Botchkov
2017-09-12 13:26:03 +04:00
parent 66a09bd6ab
commit 594c6b37f3
3 changed files with 13 additions and 1 deletions

View File

@@ -322,3 +322,9 @@ select JSON_EXTRACT('{\"input1\":\"\\u00f6\"}', '$.\"input1\"');
#
select JSON_EXTRACT('{"foo": "bar" foobar foo invalid ', '$.foo');
#
# MDEV-13138 JSON_OBJECT returns null with strings containing backticks.
#
SELECT JSON_OBJECT('foo', '`');
SELECT JSON_OBJECT("foo", "bar`bar");