[MDEV-18002] Support VALUES without parenthesis Created: 2018-12-13  Updated: 2018-12-13

Status: Open
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Federico Razzoli Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: values


 Description   

When passing only 1 value to VALUES, both in Db2 and Oracle parenthesis are optional. Supporting this in MariaDB should be a small compatibility enhancement.

MariaDB [test]> VALUES ('Hello World');
+-------------+
| Hello World |
+-------------+
| Hello World |
+-------------+
1 row in set (0.000 sec)
 
MariaDB [test]> VALUES 'Hello World';
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 ''Hello World'' at line 1


Generated at Thu Feb 08 08:40:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.