Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
N/A
-
None
Description
As far as I can tell, there is no limitation in the documentation (standard or MySQL) on data types for regular columns, apart from it being a scalar type. However, some types are not supported by MariaDB implementation:
bb-10.5-hf 6dfb3fab2 |
select * from json_table('{"a":"b"}',"$" columns(a text path '$.a')) foo; |
ERROR 1064 (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 'text path '$.a')) foo' at line 1 |
MySQL 8.0.19 |
select * from json_table('{"a":"b"}',"$" columns(a text path '$.a')) foo; |
+------+ |
| a |
|
+------+ |
| b |
|
+------+ |
1 row in set (0.001 sec) |
Same for at least BLOB and GEOMETRY type. The list is not complete.
Attachments
Issue Links
- relates to
-
MDEV-17399 Add support for JSON_TABLE
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link | This issue relates to TODO-2305 [ TODO-2305 ] |
Link | This issue relates to MENT-659 [ MENT-659 ] |
Link |
This issue relates to |
Description |
As far as I can tell, there is no limitation in the documentation (standard or MySQL) on data types for regular columns, apart from it being a scalar type. However, some types are not supported by MariaDB implementation:
{code:sql|title=bb-10.5-hf 6dfb3fab2} select * from json_table('{"a":"b"}',"$" columns(a text path '$')) foo; ERROR 1064 (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 'text path '$')) foo' at line 1 {code} {code:sql|title=MySQL 8.0.19} select * from json_table('{"a":"b"}',"$" columns(a text path '$.a')) foo; +------+ | a | +------+ | b | +------+ 1 row in set (0.001 sec) {code} Same for at least BLOB and GEOMETRY type. The list is not complete. |
As far as I can tell, there is no limitation in the documentation (standard or MySQL) on data types for regular columns, apart from it being a scalar type. However, some types are not supported by MariaDB implementation:
{code:sql|title=bb-10.5-hf 6dfb3fab2} select * from json_table('{"a":"b"}',"$" columns(a text path '$.a')) foo; ERROR 1064 (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 'text path '$.a')) foo' at line 1 {code} {code:sql|title=MySQL 8.0.19} select * from json_table('{"a":"b"}',"$" columns(a text path '$.a')) foo; +------+ | a | +------+ | b | +------+ 1 row in set (0.001 sec) {code} Same for at least BLOB and GEOMETRY type. The list is not complete. |
Fix Version/s | N/A [ 14700 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 107385 ] | MariaDB v4 [ 157633 ] |