1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-27204: [ERROR] Json_writer: a member name was expected, Assertion `got_name

[Adjusting Sergei Krivonos's patch]

"duplicates_removal" may contain multiple elements inside it and
so should have a JSON array as a value (and not object).
This commit is contained in:
Sergei Petrunia
2021-12-09 16:49:40 +03:00
parent 1e8bcbd0a0
commit c88e37ff85
3 changed files with 86 additions and 13 deletions

View File

@ -419,3 +419,13 @@ explain format=json select * from t1 order by a desc, b desc;
explain format=json select * from t1 order by a desc, b ;
drop table t1;
--echo #
--echo # MDEV-27204: [ERROR] Json_writer: a member name was expected, Assertion `got_name == named_item_expected()' failed
--echo #
CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (1),(2);
explain FORMAT=JSON
SELECT * FROM t1 t0
WHERE t0.a IN (SELECT t2.a FROM t1 t2 WHERE t0.a IN (SELECT t3.a FROM t1 t3));
DROP TABLE t1;