提交 ecba5d30 编写于 作者: B Bruce Momjian

Remove unneeded action.

上级 cae01cd8
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.119 1999/12/10 03:55:54 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.120 1999/12/10 05:17:13 momjian Exp $
* *
* HISTORY * HISTORY
* AUTHOR DATE MAJOR EVENT * AUTHOR DATE MAJOR EVENT
...@@ -246,7 +246,7 @@ static Node *doNegate(Node *n); ...@@ -246,7 +246,7 @@ static Node *doNegate(Node *n);
%type <str> TypeId %type <str> TypeId
%type <node> TableConstraint %type <node> TableConstraint
%type <list> ColPrimaryKey, ColQualList, ColQualifier %type <list> ColPrimaryKey, ColQualifier
%type <node> ColConstraint, ColConstraintElem %type <node> ColConstraint, ColConstraintElem
%type <ival> key_actions, key_action, key_reference %type <ival> key_actions, key_action, key_reference
%type <str> key_match %type <str> key_match
...@@ -939,24 +939,14 @@ columnDef: ColId Typename ColQualifier ...@@ -939,24 +939,14 @@ columnDef: ColId Typename ColQualifier
} }
; ;
ColQualifier: ColQualList { $$ = $1; } ColQualifier: ColQualifier ColConstraint
| /*EMPTY*/ { $$ = NULL; }
;
ColQualList: ColQualList ColConstraint
{ {
if ($2 != NULL) if ($2 != NULL)
$$ = lappend($1, $2); $$ = lappend($1, $2);
else else
$$ = $1; $$ = $1;
} }
| ColConstraint | /*EMPTY*/ { $$ = NULL; }
{
if ($1 != NULL)
$$ = lcons($1, NIL);
else
$$ = NULL;
}
; ;
ColPrimaryKey: PRIMARY KEY ColPrimaryKey: PRIMARY KEY
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册