From a9f6abeddecdca22afae841fbd39101d80f406d9 Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Mon, 31 May 2021 13:48:09 +0400 Subject: MDEV-25875: JSON_TABLE: extract document fragment into JSON column Accept JSON values for the JSON fields. --- mysql-test/suite/json/t/json_table_mysql.test | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mysql-test/suite/json/t/json_table_mysql.test') 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 -- cgit v1.2.1