Skip to content

Commit a6bef22

Browse files
committed
reduce grammar duplication
1 parent c917ba1 commit a6bef22

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

sql/sql_yacc.yy

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6633,19 +6633,7 @@ serial_attribute:
66336633
lex->last_field->flags|= PRI_KEY_FLAG | NOT_NULL_FLAG;
66346634
lex->alter_info.flags|= Alter_info::ALTER_ADD_INDEX;
66356635
}
6636-
| UNIQUE_SYM
6637-
{
6638-
LEX *lex=Lex;
6639-
lex->last_field->flags|= UNIQUE_KEY_FLAG;
6640-
lex->alter_info.flags|= Alter_info::ALTER_ADD_INDEX;
6641-
}
6642-
| UNIQUE_SYM KEY_SYM
6643-
{
6644-
LEX *lex=Lex;
6645-
lex->last_field->flags|= UNIQUE_KEY_FLAG;
6646-
lex->alter_info.flags|= Alter_info::ALTER_ADD_INDEX;
6647-
}
6648-
| COMMENT_SYM TEXT_STRING_sys { Lex->last_field->comment= $2; }
6636+
| vcol_attribute
66496637
| IDENT_sys equal TEXT_STRING_sys
66506638
{
66516639
if ($3.length > ENGINE_OPTION_MAX_LENGTH)

0 commit comments

Comments
 (0)