[MDEV-9547] Engine-specific table options require = sign Created: 2016-02-11  Updated: 2016-02-11  Resolved: 2016-02-11

Status: Closed
Project: MariaDB Server
Component/s: Parser
Fix Version/s: N/A

Type: Task Priority: Trivial
Reporter: Federico Razzoli Assignee: Sergei Golubchik
Resolution: Not a Bug Votes: 0
Labels: None


 Description   

With builtin table options, the = sign can be used but is optional:

MariaDB [test]> CREATE OR REPLACE TABLE t (a INT)
    -> ENGINE = CONNECT
    -> TABLE_TYPE = CSV
    -> MIN_ROWS 1000;
Query OK, 0 rows affected, 1 warning (0.00 sec)

But with engine-specific options, omitting the = sign results in a syntax error:

MariaDB [test]> CREATE OR REPLACE TABLE t (a INT)
    -> ENGINE = CONNECT
    -> TABLE_TYPE CSV;
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 'CSV' at line 3



 Comments   
Comment by Sergei Golubchik [ 2016-02-11 ]

This behaves as intended. See
https://mariadb.com/kb/en/mariadb/create-table/#table-options — note that the '=' is optional — and https://mariadb.com/kb/en/mariadb/engine-defined-new-tablefieldindex-attributes/ — where '=' is required.

Generated at Thu Feb 08 07:35:29 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.