diff options
| author | Weijun Huang <huangweijun1001@gmail.com> | 2023-02-12 18:42:23 +0100 |
|---|---|---|
| committer | Daniel Black <daniel@mariadb.org> | 2023-02-14 11:55:11 +1100 |
| commit | badf6de1715bbdddcaf8c1535747f94602aaa13f (patch) | |
| tree | 701b6321c41b183a1c5253521503129027d5c288 /mysql-test/main/func_json.test | |
| parent | c41c79650aa2ef8eaf3f887b94db8cc7478eadd1 (diff) | |
| download | mariadb-git-badf6de1715bbdddcaf8c1535747f94602aaa13f.tar.gz | |
MDEV-30412: JSON_OBJECTAGG doesn't escape double quote in key
Diffstat (limited to 'mysql-test/main/func_json.test')
| -rw-r--r-- | mysql-test/main/func_json.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/main/func_json.test b/mysql-test/main/func_json.test index 35645bcb226..0a5d1638717 100644 --- a/mysql-test/main/func_json.test +++ b/mysql-test/main/func_json.test @@ -1068,6 +1068,14 @@ SELECT * FROM arrNestTest; DROP TABLE arrNestTest; --echo # +--echo # MDEV-30412 JSON_OBJECTAGG doesn't escape double quote in key +--echo # + +SELECT JSON_OBJECTAGG('"', 1); +SELECT JSON_OBJECTAGG('\"', 1); +SELECT JSON_OBJECTAGG('\\', 1); + +--echo # --echo # End of 10.5 tests --echo # |
