-
Notifications
You must be signed in to change notification settings - Fork 217
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
[bug] create index synatx #592
Comments
First, we need to fix the
|
syntax:
|
zhyass
added a commit
to zhyass/radon
that referenced
this issue
Apr 3, 2020
[summary] 1. create index syntax. CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name ON tbl_name (key_part,...) [index_option] [algorithm_option | lock_option] ... key_part: col_name [(length)] index_option: KEY_BLOCK_SIZE [=] value | index_type | WITH PARSER ngram | COMMENT 'string' index_type: USING {BTREE | HASH} algorithm_option: ALGORITHM [=] {DEFAULT | INPLACE | COPY} lock_option: LOCK [=] {DEFAULT | NONE | SHARED | EXCLUSIVE} 2. create table index definition syntax. index_definition: PRIMARY KEY (key_part,...) | UNIQUE [index_or_key] index_name (key_part,...) [index_option] | index_or_key index_name (key_part,...) [index_option] | FULLTEXT index_or_key index_name (key_part,...) [index_option] | SPATIAL index_or_key index_name (key_part,...) [index_option] index_or_key: INDEX | KEY [test case] src/planner/ddl_plan_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/parse_test.go [patch codecov] src/planner/ddl_plan.go 93.8% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 86.4%
|
zhyass
added a commit
to zhyass/radon
that referenced
this issue
Apr 3, 2020
[summary] 1. create index syntax. CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name ON tbl_name (key_part,...) [index_option] [algorithm_option | lock_option] ... key_part: col_name [(length)] index_option: KEY_BLOCK_SIZE [=] value | index_type | WITH PARSER NGRAM | COMMENT 'string' index_type: USING {BTREE | HASH} algorithm_option: ALGORITHM [=] {DEFAULT | INPLACE | COPY} lock_option: LOCK [=] {DEFAULT | NONE | SHARED | EXCLUSIVE} 2. create table index definition syntax. index_definition: PRIMARY KEY (key_part,...) | UNIQUE [index_or_key] index_name (key_part,...) [index_option] | index_or_key index_name (key_part,...) [index_option] | FULLTEXT index_or_key index_name (key_part,...) [index_option] | SPATIAL index_or_key index_name (key_part,...) [index_option] index_or_key: INDEX | KEY [test case] src/planner/ddl_plan_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/parse_test.go [patch codecov] src/planner/ddl_plan.go 93.8% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 86.4%
zhyass
added a commit
to zhyass/radon
that referenced
this issue
Apr 3, 2020
[summary] 1. create index syntax. CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name ON tbl_name (key_part,...) [index_option] [algorithm_option | lock_option] ... key_part: col_name [(length)] index_option: KEY_BLOCK_SIZE [=] value | index_type | WITH PARSER NGRAM | COMMENT 'string' index_type: USING {BTREE | HASH} algorithm_option: ALGORITHM [=] {DEFAULT | INPLACE | COPY} lock_option: LOCK [=] {DEFAULT | NONE | SHARED | EXCLUSIVE} 2. create table index definition syntax. index_definition: PRIMARY KEY (key_part,...) | UNIQUE [index_or_key] index_name (key_part,...) [index_option] | index_or_key index_name (key_part,...) [index_option] | FULLTEXT index_or_key index_name (key_part,...) [index_option] | SPATIAL index_or_key index_name (key_part,...) [index_option] index_or_key: INDEX | KEY [test case] src/planner/ddl_plan_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/parse_test.go [patch codecov] src/planner/ddl_plan.go 93.8% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 86.4%
zhyass
added a commit
to zhyass/radon
that referenced
this issue
Apr 3, 2020
[summary] 1. create index syntax. CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name ON tbl_name (key_part,...) [index_option] [algorithm_option | lock_option] ... key_part: col_name [(length)] index_option: KEY_BLOCK_SIZE [=] value | index_type | WITH PARSER NGRAM | COMMENT 'string' index_type: USING {BTREE | HASH} algorithm_option: ALGORITHM [=] {DEFAULT | INPLACE | COPY} lock_option: LOCK [=] {DEFAULT | NONE | SHARED | EXCLUSIVE} 2. create table index definition syntax. index_definition: PRIMARY KEY (key_part,...) | UNIQUE [index_or_key] index_name (key_part,...) [index_option] | index_or_key index_name (key_part,...) [index_option] | FULLTEXT index_or_key index_name (key_part,...) [index_option] | SPATIAL index_or_key index_name (key_part,...) [index_option] index_or_key: INDEX | KEY [test case] src/planner/ddl_plan_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/parse_test.go [patch codecov] src/planner/ddl_plan.go 93.8% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 86.4%
zhyass
added a commit
to zhyass/radon
that referenced
this issue
Apr 4, 2020
[summary] 1. create index syntax. CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name ON tbl_name (key_part,...) [index_option] [algorithm_option | lock_option] ... key_part: col_name [(length)] index_option: KEY_BLOCK_SIZE [=] value | index_type | WITH PARSER NGRAM | COMMENT 'string' index_type: USING {BTREE | HASH} algorithm_option: ALGORITHM [=] {DEFAULT | INPLACE | COPY} lock_option: LOCK [=] {DEFAULT | NONE | SHARED | EXCLUSIVE} 2. create table index definition syntax. index_definition: PRIMARY KEY (key_part,...) | UNIQUE [index_or_key] index_name (key_part,...) [index_option] | index_or_key index_name (key_part,...) [index_option] | FULLTEXT index_or_key index_name (key_part,...) [index_option] | SPATIAL index_or_key index_name (key_part,...) [index_option] index_or_key: INDEX | KEY [test case] src/planner/ddl_plan_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/parse_test.go [patch codecov] src/planner/ddl_plan.go 93.8% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 86.4%
zhyass
added a commit
to zhyass/radon
that referenced
this issue
Apr 4, 2020
[summary] 1. create index syntax. CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name ON tbl_name (key_part,...) [index_option] [algorithm_option | lock_option] ... key_part: col_name [(length)] index_option: KEY_BLOCK_SIZE [=] value | index_type | WITH PARSER NGRAM | COMMENT 'string' index_type: USING {BTREE | HASH} algorithm_option: ALGORITHM [=] {DEFAULT | INPLACE | COPY} lock_option: LOCK [=] {DEFAULT | NONE | SHARED | EXCLUSIVE} 2. create table index definition syntax. index_definition: PRIMARY KEY (key_part,...) | UNIQUE [index_or_key] index_name (key_part,...) [index_option] | index_or_key index_name (key_part,...) [index_option] | FULLTEXT index_or_key index_name (key_part,...) [index_option] | SPATIAL index_or_key index_name (key_part,...) [index_option] index_or_key: INDEX | KEY [test case] src/planner/ddl_plan_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/parse_test.go [patch codecov] src/planner/ddl_plan.go 93.8% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 86.4%
BohuTANG
pushed a commit
that referenced
this issue
Apr 5, 2020
[summary] 1. create index syntax. CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name ON tbl_name (key_part,...) [index_option] [algorithm_option | lock_option] ... key_part: col_name [(length)] index_option: KEY_BLOCK_SIZE [=] value | index_type | WITH PARSER NGRAM | COMMENT 'string' index_type: USING {BTREE | HASH} algorithm_option: ALGORITHM [=] {DEFAULT | INPLACE | COPY} lock_option: LOCK [=] {DEFAULT | NONE | SHARED | EXCLUSIVE} 2. create table index definition syntax. index_definition: PRIMARY KEY (key_part,...) | UNIQUE [index_or_key] index_name (key_part,...) [index_option] | index_or_key index_name (key_part,...) [index_option] | FULLTEXT index_or_key index_name (key_part,...) [index_option] | SPATIAL index_or_key index_name (key_part,...) [index_option] index_or_key: INDEX | KEY [test case] src/planner/ddl_plan_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/parse_test.go [patch codecov] src/planner/ddl_plan.go 93.8% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 86.4%
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
doesn't work at v1.0.8, we should backport this patch from vitess(renamed 'force eof' -> 'skip to end') to fix it:
vitessio/vitess@4409977
The text was updated successfully, but these errors were encountered: