1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +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

@@ -581,5 +581,13 @@ show warnings;
Level Code Message
Error 4177 Can't store an array or an object in the scalar column 'a' of JSON_TABLE 't'.
#
# MDEV-JSON_TABLE: CREATE TABLE ignores NULL ON ERROR (implicit or explicit) and fails.
#
CREATE TABLE t1 AS SELECT * FROM JSON_TABLE('{"x":1}', '$' COLUMNS(f DATE PATH '$.*')) AS jt;
SELECT * FROM t1;
f
NULL
DROP TABLE t1;
#
# End of 10.6 tests
#