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

Remove CONSTRAINT syntax for KEY | INDEX | FULLTEXT #535

Closed
tangenta opened this issue Aug 30, 2019 · 1 comment
Closed

Remove CONSTRAINT syntax for KEY | INDEX | FULLTEXT #535

tangenta opened this issue Aug 30, 2019 · 1 comment

Comments

@tangenta
Copy link
Contributor

tangenta commented Aug 30, 2019

Index Issue: pingcap/tidb#11486

These SQL cases do not work in MySQL, but they work in TiDB parser:

create table t (a int, constraint c key idx (a))
create table t (a int, constraint c index idx (a))
create table t (a int, constraint c key idx using hash (a))
create table t (a int, constraint c index idx using rtree (a))
create table t (a int, constraint c fulltext index (a))

ConstraintKeywordOpt is not applicable in KEY, INDEX, or FULLTEXT according to the grammar of MySQL 8.0.

Claim this subtask based on the comments below this issue.

@wty4427300
Copy link

Let me fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants