diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-02-13 18:07:59 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-02-13 18:19:02 +0100 |
commit | 1f372cf1de2a15057a09c6936f025f09500c0228 (patch) | |
tree | e2a189140ce6f67b631ebae849cd62822ff550c9 /mysql-test | |
parent | 87075e7f87868eb5438f4f5c191e3b1c1a1ea212 (diff) | |
download | mariadb-git-1f372cf1de2a15057a09c6936f025f09500c0228.tar.gz |
MDEV-11439 No data type JSON, but CAST(something AS JSON) pretends to work
remove CAST(... AS JSON) from the grammar for 10.2.4
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/func_json.result | 9 | ||||
-rw-r--r-- | mysql-test/t/func_json.test | 6 |
2 files changed, 3 insertions, 12 deletions
diff --git a/mysql-test/r/func_json.result b/mysql-test/r/func_json.result index e8d11fce56f..80b257cdd31 100644 --- a/mysql-test/r/func_json.result +++ b/mysql-test/r/func_json.result @@ -402,15 +402,6 @@ json_object("a", json_object("b", "abcd")) select json_object("a", '{"b": "abcd"}'); json_object("a", '{"b": "abcd"}') {"a": "{\"b\": \"abcd\"}"} -select json_object("a", cast('{"b": "abcd"}' as json)); -json_object("a", cast('{"b": "abcd"}' as json)) -{"a": {"b": "abcd"}} -select cast(NULL AS JSON); -cast(NULL AS JSON) -NULL -select json_depth(cast(NULL as JSON)); -json_depth(cast(NULL as JSON)) -NULL select json_depth('[[], {}]'); json_depth('[[], {}]') 2 diff --git a/mysql-test/t/func_json.test b/mysql-test/t/func_json.test index aedc65159c5..ea616cbb19f 100644 --- a/mysql-test/t/func_json.test +++ b/mysql-test/t/func_json.test @@ -161,10 +161,10 @@ select json_unquote('abc'); select json_object("a", json_object("b", "abcd")); select json_object("a", '{"b": "abcd"}'); -select json_object("a", cast('{"b": "abcd"}' as json)); +#select json_object("a", cast('{"b": "abcd"}' as json)); -select cast(NULL AS JSON); -select json_depth(cast(NULL as JSON)); +#select cast(NULL AS JSON); +#select json_depth(cast(NULL as JSON)); select json_depth('[[], {}]'); select json_depth('[[[1,2,3],"s"], {}, []]'); select json_depth('[10, {"a": 20}]'); |