File tree Expand file tree Collapse file tree 1 file changed +10
-21
lines changed Expand file tree Collapse file tree 1 file changed +10
-21
lines changed Original file line number Diff line number Diff line change @@ -571,28 +571,17 @@ impl Parser {
571
571
} ;
572
572
debug ! ( "default: {:?}" , default ) ;
573
573
574
- match self . peek_token ( ) {
575
- Some ( Token :: Comma ) => {
576
- self . next_token ( ) ;
577
- columns. push ( SQLColumnDef {
578
- name : column_name. as_sql_ident ( ) ,
579
- data_type : data_type,
580
- allow_null,
581
- is_primary,
582
- is_unique,
583
- default,
584
- } ) ;
585
- }
574
+ columns. push ( SQLColumnDef {
575
+ name : column_name. as_sql_ident ( ) ,
576
+ data_type : data_type,
577
+ allow_null,
578
+ is_primary,
579
+ is_unique,
580
+ default,
581
+ } ) ;
582
+ match self . next_token ( ) {
583
+ Some ( Token :: Comma ) => { }
586
584
Some ( Token :: RParen ) => {
587
- self . next_token ( ) ;
588
- columns. push ( SQLColumnDef {
589
- name : column_name. as_sql_ident ( ) ,
590
- data_type : data_type,
591
- allow_null,
592
- is_primary,
593
- is_unique,
594
- default,
595
- } ) ;
596
585
break ;
597
586
}
598
587
other => {
You can’t perform that action at this time.
0 commit comments