Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8f4865b

Browse files
author
Thomas G. Lockhart
committed
Remove premature code in constraint parsing.
Change elog WARN to NOTICE for unimplemented constraints.
1 parent9257cb6 commit8f4865b

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

‎src/backend/parser/gram.y

Lines changed: 4 additions & 10 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 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
* AUTHORDATEMAJOR 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)

[8]ページ先頭

©2009-2025 Movatter.jp