Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1cce4d

Browse files
committed
This corrects an error in current gram.y for ALTER TABLE ... ADD
CONSTRAINT Oliver Elphick
1 parent 41d4548 commit e1cce4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/parser/gram.y

Lines changed: 2 additions & 2 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.128 2000/01/17 00:14:48 tgl Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.129 2000/01/18 06:12:03 momjian Exp $
1414
*
1515
* HISTORY
1616
* AUTHOR DATE MAJOR EVENT
@@ -844,7 +844,7 @@ AlterTableStmt:
844844
| ALTER TABLE relation_name opt_inh_star ADD TableConstraint
845845
{
846846
AlterTableStmt *n = makeNode(AlterTableStmt);
847-
n->subtype = 'A';
847+
n->subtype = 'C';
848848
n->relname = $3;
849849
n->inh = $4;
850850
n->def = $6;

0 commit comments

Comments
 (0)