diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2020-10-24 00:16:56 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2020-10-24 00:16:56 +0400 |
commit | 9df99151dae05574cf21e7787ffd4fe988a66d77 (patch) | |
tree | aee1c30b2fff4dda774f349a8bb416a89b96ea53 /mysql-test/main/func_json.test | |
parent | bff82f51ba01d31b4307a94b22a438e3ea1c471c (diff) | |
download | mariadb-git-9df99151dae05574cf21e7787ffd4fe988a66d77.tar.gz |
MDEV-23437 Item_func_json_objectagg::print is not implemented.
Fix the Item_func_json_objectagg::fix_fields to save the orig_args.
Diffstat (limited to 'mysql-test/main/func_json.test')
-rw-r--r-- | mysql-test/main/func_json.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/main/func_json.test b/mysql-test/main/func_json.test index 68d381f5c07..04e16c02e6d 100644 --- a/mysql-test/main/func_json.test +++ b/mysql-test/main/func_json.test @@ -849,6 +849,10 @@ INSERT INTO t1 VALUES (0, 'a1', '1') , (0, 'a2', '2') , (1, 'b1', '3'); EXPLAIN SELECT B.e, JSON_OBJECTAGG(B.a, B.v) FROM t1 A, t1 B GROUP BY B.e, B.a; SELECT B.e, JSON_OBJECTAGG(B.a, B.v) FROM t1 A, t1 B GROUP BY B.e, B.a; +CREATE VIEW v AS SELECT JSON_OBJECTAGG(a, e) FROM t1; +SELECT * FROM v; + +DROP VIEW v; DROP TABLE t1; --echo # |