diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2017-09-12 13:26:03 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2017-09-12 13:26:03 +0400 |
commit | 594c6b37f3dacf537e804c7a9264eeb4d84b5671 (patch) | |
tree | ac73a571d1e2f398cbfe7dc00f17a36241a6beec /mysql-test/t/func_json.test | |
parent | 66a09bd6aba0f7b74492d198146bb8d47cdd9dbb (diff) | |
download | mariadb-git-594c6b37f3dacf537e804c7a9264eeb4d84b5671.tar.gz |
MDEV-13138 JSON_OBJECT returns null with strings containing backticks.
Condition was fixed.
Diffstat (limited to 'mysql-test/t/func_json.test')
-rw-r--r-- | mysql-test/t/func_json.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/t/func_json.test b/mysql-test/t/func_json.test index eba492b72e8..3b978c1a1cf 100644 --- a/mysql-test/t/func_json.test +++ b/mysql-test/t/func_json.test @@ -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"); + |