From: Michael Meskes <meskes@postgresql.org> Date: Wed, 25 Jul 2007 16:10:41 +0000 (+0000) Subject: Synced parser X-Git-Tag: REL8_3_BETA1~393 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1b336679c8a263525e4bfa6786c931ff5be0d8d;p=postgresql Synced parser --- diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog index 06c0414e15..b7b85f91b5 100644 --- a/src/interfaces/ecpg/ChangeLog +++ b/src/interfaces/ecpg/ChangeLog @@ -2211,5 +2211,9 @@ Mon, 11 Jun 2007 13:59:57 +0200 Tue, 12 Jun 2007 09:46:03 +0200 - Synced parser and keyword list. + +Wed, 25 Jul 2007 15:34:54 +0200 + + - Synced parser. - Set ecpg library version to 5.3. - Set ecpg version to 4.3.1. diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index d16611f102..354ff6363c 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.347 2007/06/12 11:32:30 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.348 2007/07/25 16:10:41 meskes Exp $ */ /* Copyright comment */ %{ @@ -2735,6 +2735,10 @@ RenameStmt: ALTER AGGREGATE func_name aggr_args RENAME TO name { $$ = cat_str(4, make_str("alter schema"), $3, make_str("rename to"), $6); } | ALTER TABLE relation_expr RENAME TO name { $$ = cat_str(4, make_str("alter table"), $3, make_str("rename to"), $6); } + | ALTER SEQUENCE relation_expr RENAME TO name + { $$ = cat_str(4, make_str("alter sequence"), $3, make_str("rename to"), $6); } + | ALTER VIEW relation_expr RENAME TO name + { $$ = cat_str(4, make_str("alter view"), $3, make_str("rename to"), $6); } | ALTER INDEX relation_expr RENAME TO name { $$ = cat_str(4, make_str("alter index"), $3, make_str("rename to"), $6); } | ALTER TABLE relation_expr RENAME opt_column name TO name