File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Check https://github.com/andygrove/sqlparser-rs/commits/master for undocumented
13
13
- Support Snowflake's ` FROM (table_name) ` (#155 ) - thanks @eyalleshem !
14
14
15
15
### Added
16
+ - Support basic forms of ` CREATE INDEX ` and ` DROP INDEX ` (#167 ) - thanks @mashuai !
16
17
- Support MSSQL ` TOP (<N>) [ PERCENT ] [ WITH TIES ] ` (#150 ) - thanks @alexkyllo !
17
18
- Support MySQL ` LIMIT row_count OFFSET offset ` (not followed by ` ROW ` or ` ROWS ` ) and remember which variant was parsed (#158 ) - thanks @mjibson !
18
19
- Support PostgreSQL ` CREATE TABLE IF NOT EXISTS table_name ` (#163 ) - thanks @alex-dukhno !
Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ define_keywords!(
200
200
IDENTITY ,
201
201
IF ,
202
202
IN ,
203
+ INDEX ,
203
204
INDICATOR ,
204
205
INNER ,
205
206
INOUT ,
@@ -420,8 +421,7 @@ define_keywords!(
420
421
WORK ,
421
422
YEAR ,
422
423
ZONE ,
423
- END_EXEC = "END-EXEC" ,
424
- INDEX
424
+ END_EXEC = "END-EXEC"
425
425
) ;
426
426
427
427
/// These keywords can't be used as a table alias, so that `FROM table_name alias`
Original file line number Diff line number Diff line change @@ -943,9 +943,7 @@ impl Parser {
943
943
let index_name = self . parse_object_name ( ) ?;
944
944
self . expect_keyword ( "ON" ) ?;
945
945
let table_name = self . parse_object_name ( ) ?;
946
- self . expect_token ( & Token :: LParen ) ?;
947
- let columns = self . parse_comma_separated ( Parser :: parse_identifier) ?;
948
- self . expect_token ( & Token :: RParen ) ?;
946
+ let columns = self . parse_parenthesized_column_list ( Mandatory ) ?;
949
947
Ok ( Statement :: CreateIndex {
950
948
name : index_name,
951
949
table_name,
You can’t perform that action at this time.
0 commit comments