ord should be 1,1,1,2, which tells that first two values of 'l' are
ord should be 1,1,1,2, which tells that first two values of 'l' are
from the same object, and next two are from different objects
from the same object, and next two are from different objects
SELECT *
SELECT *
...
@@ -551,10 +551,12 @@ JSON_TABLE('{}', '$' COLUMNS (x INT PATH '$.x' DEFAULT NULL ON ERROR)) jt;
...
@@ -551,10 +551,12 @@ JSON_TABLE('{}', '$' COLUMNS (x INT PATH '$.x' DEFAULT NULL ON ERROR)) jt;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NULL ON ERROR)) jt' at line 2
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NULL ON ERROR)) jt' at line 2
SELECT * FROM
SELECT * FROM
JSON_TABLE('{}', '$' COLUMNS (x INT PATH '$.x' DEFAULT 0 ON EMPTY)) jt;
JSON_TABLE('{}', '$' COLUMNS (x INT PATH '$.x' DEFAULT 0 ON EMPTY)) jt;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '0 ON EMPTY)) jt' at line 2
x
0
SELECT * FROM
SELECT * FROM
JSON_TABLE('{}', '$' COLUMNS (x INT PATH '$.x' DEFAULT 0 ON ERROR)) jt;
JSON_TABLE('{}', '$' COLUMNS (x INT PATH '$.x' DEFAULT 0 ON ERROR)) jt;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '0 ON ERROR)) jt' at line 2
x
NULL
SELECT * FROM
SELECT * FROM
JSON_TABLE('{}', '$' COLUMNS (x DATE
JSON_TABLE('{}', '$' COLUMNS (x DATE
PATH '$.x'
PATH '$.x'
...
@@ -604,7 +606,7 @@ SELECT * FROM JSON_TABLE('{"a":"1"}',
...
@@ -604,7 +606,7 @@ SELECT * FROM JSON_TABLE('{"a":"1"}',
o FOR ORDINALITY)) AS jt
o FOR ORDINALITY)) AS jt
WHERE o = 1;
WHERE o = 1;
jpath o
jpath o
1 1
"1" 1
#
#
# Bug#25427982: ASSERTION `DERIVED' FAILED IN SQL/TABLE.H
# Bug#25427982: ASSERTION `DERIVED' FAILED IN SQL/TABLE.H