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

MDEV-25255 JSON_TABLE: CREATE TABLE ignores NULL ON ERROR (implicit or explicit) and fails.

should not abort on field::set().
This commit is contained in:
Alexey Botchkov
2021-03-28 18:02:58 +04:00
parent d2e2219e46
commit 13390a70e2
3 changed files with 17 additions and 0 deletions

View File

@ -453,6 +453,14 @@ drop table json_table;
select a from json_table('[[]]', '$' columns(a char(8) path '$' error on error)) t;
show warnings;
--echo #
--echo # MDEV-JSON_TABLE: CREATE TABLE ignores NULL ON ERROR (implicit or explicit) and fails.
--echo #
CREATE TABLE t1 AS SELECT * FROM JSON_TABLE('{"x":1}', '$' COLUMNS(f DATE PATH '$.*')) AS jt;
SELECT * FROM t1;
DROP TABLE t1;
--echo #
--echo # End of 10.6 tests
--echo #