Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ecba5d3

Browse files
committed
Remove unneeded action.
1 parent cae01cd commit ecba5d3

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

src/backend/parser/gram.y

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.119 1999/12/10 03:55:54 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.120 1999/12/10 05:17:13 momjian Exp $
1414
*
1515
* HISTORY
1616
* AUTHOR DATE MAJOR EVENT
@@ -246,7 +246,7 @@ static Node *doNegate(Node *n);
246246
%type <str> TypeId
247247

248248
%type <node> TableConstraint
249-
%type <list> ColPrimaryKey, ColQualList, ColQualifier
249+
%type <list> ColPrimaryKey, ColQualifier
250250
%type <node> ColConstraint, ColConstraintElem
251251
%type <ival> key_actions, key_action, key_reference
252252
%type <str> key_match
@@ -939,24 +939,14 @@ columnDef: ColId Typename ColQualifier
939939
}
940940
;
941941

942-
ColQualifier: ColQualList { $$ = $1; }
943-
| /*EMPTY*/ { $$ = NULL; }
944-
;
945-
946-
ColQualList: ColQualList ColConstraint
942+
ColQualifier: ColQualifier ColConstraint
947943
{
948944
if ($2 != NULL)
949945
$$ = lappend($1, $2);
950946
else
951947
$$ = $1;
952948
}
953-
| ColConstraint
954-
{
955-
if ($1 != NULL)
956-
$$ = lcons($1, NIL);
957-
else
958-
$$ = NULL;
959-
}
949+
| /*EMPTY*/ { $$ = NULL; }
960950
;
961951

962952
ColPrimaryKey: PRIMARY KEY

0 commit comments

Comments
 (0)