Skip to content

Commit

Permalink
reduce grammar duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Jul 5, 2017
1 parent c917ba1 commit a6bef22
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions sql/sql_yacc.yy
Original file line number Diff line number Diff line change
Expand Up @@ -6633,19 +6633,7 @@ serial_attribute:
lex->last_field->flags|= PRI_KEY_FLAG | NOT_NULL_FLAG;
lex->alter_info.flags|= Alter_info::ALTER_ADD_INDEX;
}
| UNIQUE_SYM
{
LEX *lex=Lex;
lex->last_field->flags|= UNIQUE_KEY_FLAG;
lex->alter_info.flags|= Alter_info::ALTER_ADD_INDEX;
}
| UNIQUE_SYM KEY_SYM
{
LEX *lex=Lex;
lex->last_field->flags|= UNIQUE_KEY_FLAG;
lex->alter_info.flags|= Alter_info::ALTER_ADD_INDEX;
}
| COMMENT_SYM TEXT_STRING_sys { Lex->last_field->comment= $2; }
| vcol_attribute
| IDENT_sys equal TEXT_STRING_sys
{
if ($3.length > ENGINE_OPTION_MAX_LENGTH)
Expand Down

0 comments on commit a6bef22

Please sign in to comment.