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

Commit 8f4865b

Browse files
author
Thomas G. Lockhart
committed
Remove premature code in constraint parsing.
Change elog WARN to NOTICE for unimplemented constraints.
1 parent 9257cb6 commit 8f4865b

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/backend/parser/gram.y

+4-10
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 1.73 1997/11/30 23:11:10 thomas Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.74 1997/12/02 02:54:15 thomas Exp $
1414
*
1515
* HISTORY
1616
* AUTHOR DATE MAJOR EVENT
@@ -731,17 +731,11 @@ ConstraintDef: CHECK constraint_elem
731731
$$ = constr;
732732
}
733733
| UNIQUE '(' columnList ')'
734-
{ elog(WARN,"CREATE TABLE/UNIQUE not yet implemented",NULL); }
734+
{ elog(NOTICE,"CREATE TABLE/UNIQUE clause ignored; not yet implemented",NULL); }
735735
| PRIMARY KEY '(' columnList ')'
736-
{
737-
ConstraintDef *constr = palloc (sizeof(ConstraintDef));
738-
constr->type = CONSTR_PRIMARY;
739-
constr->name = NULL;
740-
constr->keys = $4;
741-
$$ = constr;
742-
}
736+
{ elog(NOTICE,"CREATE TABLE/PRIMARY KEY clause ignored; not yet implemented",NULL); }
743737
| FOREIGN KEY '(' columnList ')' REFERENCES ColId opt_column_list key_match key_actions
744-
{ elog(NOTICE,"FOREIGN KEY clause ignored; not yet implemented",NULL); }
738+
{ elog(NOTICE,"CREATE TABLE/FOREIGN KEY clause ignored; not yet implemented",NULL); }
745739
;
746740

747741
constraint_elem: AexprConst

0 commit comments

Comments
 (0)