diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2016-12-06 00:34:25 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2016-12-06 00:34:25 +0400 |
commit | 3743b4c3ef64223bd2e35874d9ab22f46bcf504d (patch) | |
tree | c8360bbe499878dfd66f2c27cec726ff1a841726 /mysql-test | |
parent | 0009f4a441da6ec98fdc55c6a14ce007edf7cfdb (diff) | |
download | mariadb-git-3743b4c3ef64223bd2e35874d9ab22f46bcf504d.tar.gz |
MDEV-11468 JSON_UNQUOTE returns incorrect results.
Now return the argument's value when error.
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/func_json.result | 3 | ||||
-rw-r--r-- | mysql-test/t/func_json.test | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/r/func_json.result b/mysql-test/r/func_json.result index 36430973fe7..df34e5b80bc 100644 --- a/mysql-test/r/func_json.result +++ b/mysql-test/r/func_json.result @@ -277,6 +277,9 @@ drop table t1; select json_unquote('"abc"'); json_unquote('"abc"') abc +select json_unquote('abc'); +json_unquote('abc') +abc select json_object("a", json_object("b", "abcd")); json_object("a", json_object("b", "abcd")) {"a": {"b": "abcd"}} diff --git a/mysql-test/t/func_json.test b/mysql-test/t/func_json.test index 62853de6ad2..357f223f579 100644 --- a/mysql-test/t/func_json.test +++ b/mysql-test/t/func_json.test @@ -121,6 +121,7 @@ drop table t1; select json_unquote('"abc"'); +select json_unquote('abc'); select json_object("a", json_object("b", "abcd")); select json_object("a", '{"b": "abcd"}'); |