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
DDL: create table should not allow explicit empty name index #20617
Conversation
@ti-srebot /run-all-tests |
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ddl_api.go
changed its file permission from 644 to 755.
@tangenta , when runing make test int tidb with my parser,I get err:
but I run this sql , it is right. |
It is recommended to run |
/run-make check |
1 similar comment
/run-make check |
@ti-srebot /run-all-tests |
/run-all-tests |
|
go mod tidy **second run make check is wrong ,i not know why ? Files go.sum and /tmp/go.sum.before differ** i update tidb,now is
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@watchpoints, Congratulations, you get 400 in this PR, and your total score is 400 in high-performance challenge program. |
What problem does this PR solve?
Issue Number: close #18149
create table not support create empty name index
after parser PR: pingcap/parser/pull/1059
then update go.mod.
Problem Summary:
What is changed and how it works?
change token IndexName from ident to item type
use a NullIndexName struct to represent a empty index to distinguish from a anonymous index
Related changes
Check List
Tests
Unit test
go test -check.f TestValidator
go test -check.f TestCreateTable
Manual test (add detailed scripts or steps below)
In TiDB
In MySQL:
It has the same action with MySQL
Side effects
Release note