Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
N/A
-
None
Description
bb-10.6-mdev17399-psergey2 8b533cc1d5 |
MariaDB [test]> select * from json_table('["foo"]', '$[*]' columns(a enum('foo','bar') path '$')) a; |
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 'enum('foo','bar') path '$')) a' at line 1 |
Works in MySQL:
MySQL 8.0.23 |
MySQL [test]> select * from json_table('["foo"]', '$[*]' columns(a enum('foo','bar') path '$')) a; |
+------+ |
| a |
|
+------+ |
| foo |
|
+------+ |
1 row in set (0.001 sec) |
Other types which cause a syntax error are SET, geometry of different sorts, INET6. The list may be incomplete.
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 ] |
Assignee | Sergei Petrunia [ psergey ] | Alexey Botchkov [ holyfoot ] |
Link |
This issue relates to |
Workflow | MariaDB v3 [ 120122 ] | MariaDB v4 [ 142682 ] |
Assignee | Alexey Botchkov [ holyfoot ] | Rucha Deodhar [ rucha174 ] |