Commit 12119188 authored by Neil Conway's avatar Neil Conway

Revert some careless search-and-replace: "ADD" in comment text should

not be replaced with "ADD_P".
parent be6187e1
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.520 2005/12/28 01:30:00 tgl Exp $ * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.521 2005/12/29 04:53:18 neilc Exp $
* *
* HISTORY * HISTORY
* AUTHOR DATE MAJOR EVENT * AUTHOR DATE MAJOR EVENT
...@@ -1304,7 +1304,7 @@ alter_table_cmds: ...@@ -1304,7 +1304,7 @@ alter_table_cmds:
/* Subcommands that are for ALTER TABLE only */ /* Subcommands that are for ALTER TABLE only */
alter_table_cmd: alter_table_cmd:
/* ALTER TABLE <relation> ADD_P [COLUMN] <coldef> */ /* ALTER TABLE <relation> ADD [COLUMN] <coldef> */
ADD_P opt_column columnDef ADD_P opt_column columnDef
{ {
AlterTableCmd *n = makeNode(AlterTableCmd); AlterTableCmd *n = makeNode(AlterTableCmd);
...@@ -1377,7 +1377,7 @@ alter_table_cmd: ...@@ -1377,7 +1377,7 @@ alter_table_cmd:
n->transform = $6; n->transform = $6;
$$ = (Node *)n; $$ = (Node *)n;
} }
/* ALTER TABLE <relation> ADD_P CONSTRAINT ... */ /* ALTER TABLE <relation> ADD CONSTRAINT ... */
| ADD_P TableConstraint | ADD_P TableConstraint
{ {
AlterTableCmd *n = makeNode(AlterTableCmd); AlterTableCmd *n = makeNode(AlterTableCmd);
...@@ -4767,7 +4767,7 @@ AlterDomainStmt: ...@@ -4767,7 +4767,7 @@ AlterDomainStmt:
n->typename = $3; n->typename = $3;
$$ = (Node *)n; $$ = (Node *)n;
} }
/* ALTER DOMAIN <domain> ADD_P CONSTRAINT ... */ /* ALTER DOMAIN <domain> ADD CONSTRAINT ... */
| ALTER DOMAIN_P any_name ADD_P TableConstraint | ALTER DOMAIN_P any_name ADD_P TableConstraint
{ {
AlterDomainStmt *n = makeNode(AlterDomainStmt); AlterDomainStmt *n = makeNode(AlterDomainStmt);
......
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.314 2005/12/27 04:00:08 momjian Exp $ */ /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.315 2005/12/29 04:53:18 neilc Exp $ */
/* Copyright comment */ /* Copyright comment */
%{ %{
...@@ -1245,7 +1245,7 @@ alter_table_cmds: ...@@ -1245,7 +1245,7 @@ alter_table_cmds:
alter_table_cmd: alter_table_cmd:
ADD_P opt_column columnDef ADD_P opt_column columnDef
/* ALTER TABLE <relation> ADD_P [COLUMN] <coldef> */ /* ALTER TABLE <relation> ADD [COLUMN] <coldef> */
{ $$ = cat_str(3, make_str("add"), $2, $3); } { $$ = cat_str(3, make_str("add"), $2, $3); }
/* ALTER TABLE <relation> ALTER [COLUMN] <colname> {SET DEFAULT <expr>|DROP DEFAULT} */ /* ALTER TABLE <relation> ALTER [COLUMN] <colname> {SET DEFAULT <expr>|DROP DEFAULT} */
| ALTER opt_column ColId alter_column_default | ALTER opt_column ColId alter_column_default
...@@ -1268,7 +1268,7 @@ alter_table_cmd: ...@@ -1268,7 +1268,7 @@ alter_table_cmd:
/* ALTER TABLE <relation> ALTER [COLUMN] <colname> TYPE <typename> [ USING <expression> ] */ /* ALTER TABLE <relation> ALTER [COLUMN] <colname> TYPE <typename> [ USING <expression> ] */
| ALTER opt_column ColId TYPE_P Typename alter_using | ALTER opt_column ColId TYPE_P Typename alter_using
{ $$ = cat_str(6, make_str("alter"), $2, $3, make_str("type"), $5, $6); } { $$ = cat_str(6, make_str("alter"), $2, $3, make_str("type"), $5, $6); }
/* ALTER TABLE <relation> ADD_P CONSTRAINT ... */ /* ALTER TABLE <relation> ADD CONSTRAINT ... */
| ADD_P TableConstraint | ADD_P TableConstraint
{ $$ = cat_str(2, make_str("add"), $2); } { $$ = cat_str(2, make_str("add"), $2); }
/* ALTER TABLE <relation> DROP CONSTRAINT ... */ /* ALTER TABLE <relation> DROP CONSTRAINT ... */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment