1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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
This commit is contained in:
Sergei Golubchik
2017-02-13 18:07:59 +01:00
parent 87075e7f87
commit 1f372cf1de
3 changed files with 3 additions and 13 deletions

View File

@ -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