Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CREATE TABLE with RESERVED KEYWORD status breaks #3051

Closed
VinaiRachakonda opened this issue Mar 21, 2022 · 2 comments
Closed

CREATE TABLE with RESERVED KEYWORD status breaks #3051

VinaiRachakonda opened this issue Mar 21, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@VinaiRachakonda
Copy link
Contributor

CREATE TABLE status(pk int) throws the following error:

Error parsing SQL
syntax error at position 20 near 'status'
@zachmu zachmu added bug Something isn't working 1hr labels Mar 29, 2022
@VinaiRachakonda
Copy link
Contributor Author

These failing reserved keyword tests are skipped and documented here:

@timsehn
Copy link
Sponsor Contributor

timsehn commented Aug 30, 2022

This works now.

mysql> CREATE TABLE status(pk int);
Query OK, 0 rows affected (0.01 sec)

mysql> show create table status;
+--------+-----------------------------------------------------------------------------------------------------+
| Table  | Create Table                                                                                        |
+--------+-----------------------------------------------------------------------------------------------------+
| status | CREATE TABLE `status` (
  `pk` int
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin |
+--------+-----------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

@timsehn timsehn closed this as completed Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants