1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-28 05:21:27 +03:00

Remove premature code in constraint parsing.

Change elog WARN to NOTICE for unimplemented constraints.
This commit is contained in:
Thomas G. Lockhart 1997-12-02 02:54:15 +00:00
parent 9257cb65b2
commit 8f4865bdd7

View File

@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.73 1997/11/30 23:11:10 thomas Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.74 1997/12/02 02:54:15 thomas Exp $
* *
* HISTORY * HISTORY
* AUTHOR DATE MAJOR EVENT * AUTHOR DATE MAJOR EVENT
@ -731,17 +731,11 @@ ConstraintDef: CHECK constraint_elem
$$ = constr; $$ = constr;
} }
| UNIQUE '(' columnList ')' | UNIQUE '(' columnList ')'
{ elog(WARN,"CREATE TABLE/UNIQUE not yet implemented",NULL); } { elog(NOTICE,"CREATE TABLE/UNIQUE clause ignored; not yet implemented",NULL); }
| PRIMARY KEY '(' columnList ')' | PRIMARY KEY '(' columnList ')'
{ { elog(NOTICE,"CREATE TABLE/PRIMARY KEY clause ignored; not yet implemented",NULL); }
ConstraintDef *constr = palloc (sizeof(ConstraintDef));
constr->type = CONSTR_PRIMARY;
constr->name = NULL;
constr->keys = $4;
$$ = constr;
}
| FOREIGN KEY '(' columnList ')' REFERENCES ColId opt_column_list key_match key_actions | FOREIGN KEY '(' columnList ')' REFERENCES ColId opt_column_list key_match key_actions
{ elog(NOTICE,"FOREIGN KEY clause ignored; not yet implemented",NULL); } { elog(NOTICE,"CREATE TABLE/FOREIGN KEY clause ignored; not yet implemented",NULL); }
; ;
constraint_elem: AexprConst constraint_elem: AexprConst