diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2021-05-31 13:48:09 +0400 |
---|---|---|
committer | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2022-05-31 12:09:11 +0530 |
commit | a9f6abeddecdca22afae841fbd39101d80f406d9 (patch) | |
tree | bf9639f4b341862c7dc6cf7da24b02df59085b5c /mysql-test/suite/json/t/json_table_mysql.test | |
parent | 6b6d745b9eab64c6c1a3c13c11afe38c6761df69 (diff) | |
download | mariadb-git-a9f6abeddecdca22afae841fbd39101d80f406d9.tar.gz |
MDEV-25875: JSON_TABLE: extract document fragment into JSON column
Accept JSON values for the JSON fields.
Diffstat (limited to 'mysql-test/suite/json/t/json_table_mysql.test')
-rw-r--r-- | mysql-test/suite/json/t/json_table_mysql.test | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mysql-test/suite/json/t/json_table_mysql.test b/mysql-test/suite/json/t/json_table_mysql.test index aaf123c6f7c..9f77ad964f3 100644 --- a/mysql-test/suite/json/t/json_table_mysql.test +++ b/mysql-test/suite/json/t/json_table_mysql.test @@ -453,13 +453,11 @@ SELECT * FROM SELECT * FROM JSON_TABLE('{}', '$' COLUMNS (x INT PATH '$.x' DEFAULT NULL ON ERROR)) jt; -# The DEFAULT value must be a string on JSON format for now. ---error 1064 SELECT * FROM JSON_TABLE('{}', '$' COLUMNS (x INT PATH '$.x' DEFAULT 0 ON EMPTY)) jt; ---error 1064 SELECT * FROM JSON_TABLE('{}', '$' COLUMNS (x INT PATH '$.x' DEFAULT 0 ON ERROR)) jt; +# We don't accept dates in DEFAULT --error 1064 SELECT * FROM JSON_TABLE('{}', '$' COLUMNS (x DATE |