1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

MDEV-11437 JSON_QUOTE function does not quote and uses wrong character set.

json_quote fixed.
This commit is contained in:
Alexey Botchkov
2016-12-04 14:49:06 +04:00
parent b4cbaf0b7c
commit 12897a5bba
3 changed files with 23 additions and 6 deletions

View File

@@ -78,6 +78,10 @@ select json_exists('{"key1":"xxxx", "key2":[1, 2, 3]}', "$.key2[1]");
select json_exists('{"key1":"xxxx", "key2":[1, 2, 3]}', "$.key2[10]");
select json_quote('"string"');
create table t1 as select json_quote('foo');
select * from t1;
show create table t1;
drop table t1;
select json_merge('string', 123);