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

attributes is now a reserved word #26778

Closed
morgo opened this issue Aug 1, 2021 · 4 comments
Closed

attributes is now a reserved word #26778

morgo opened this issue Aug 1, 2021 · 4 comments
Assignees
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@morgo
Copy link
Contributor

morgo commented Aug 1, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

This is used in the integration test-suite, and seems quite likely that it could be used in an application:

CREATE TABLE t1 (attributes int);

2. What did you expect to see? (Required)

Success

3. What did you see instead (Required)

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 27 near "attributes int)" 

4. What is your TiDB version? (Required)

mysql> SELECT tidb_version()\G
*************************** 1. row ***************************
tidb_version(): Release Version: v5.2.0-alpha-443-g96e06951a
Edition: Community
Git Commit Hash: 96e06951a0ba1c400177a32a8a38532e82c09776
Git Branch: infoschema-refer-constraints
UTC Build Time: 2021-08-01 18:23:29
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
1 row in set (0.00 sec)
@morgo morgo added the type/bug The issue is confirmed as a bug. label Aug 1, 2021
@morgo
Copy link
Contributor Author

morgo commented Aug 1, 2021

This is a regression of #26511

@morgo morgo changed the title attributes is a reserved word attributes is now a reserved word Aug 1, 2021
@aytrack
Copy link
Contributor

aytrack commented Aug 2, 2021

only can be reproduced on master

@djshow832
Copy link
Contributor

Fixed by pingcap/parser#1290

@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

6 participants