From b4e334b6e681bfec05bf36d62494b3a39a2db784 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Wed, 27 Nov 2002 08:30:27 +0000 Subject: [PATCH] Synced parser with backend --- src/interfaces/ecpg/ChangeLog | 5 +++++ src/interfaces/ecpg/preproc/preproc.y | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog index d0fd0508ee..26e0ebd4ef 100644 --- a/src/interfaces/ecpg/ChangeLog +++ b/src/interfaces/ecpg/ChangeLog @@ -1314,3 +1314,8 @@ Thu Nov 7 10:34:07 CET 2002 Fri Nov 15 16:46:08 CET 2002 - Synced preproc.y with gram.y. + + +Wed Nov 27 09:28:54 CET 2002 + + - Synced preproc.y with gram.y. diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index df961a7b55..83e4bf5283 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.202 2002/11/15 15:47:44 meskes Exp $ */ +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.203 2002/11/27 08:30:27 meskes Exp $ */ /* Copyright comment */ %{ @@ -1089,7 +1089,7 @@ opt_using: USING { $$ = make_str("using"); } /***************************************************************************** * * QUERY : - * CREATE relname + * CREATE TABLE relname * *****************************************************************************/ @@ -1444,6 +1444,8 @@ TriggerOneEvent: INSERT { $$ = make_str("insert"); } TriggerForSpec: FOR TriggerForOpt TriggerForType { $$ = cat_str(3, make_str("for"), $2, $3); } + | /* EMPTY */ + { $$ = EMPTY; } ; TriggerForOpt: EACH { $$ = make_str("each"); } @@ -2307,9 +2309,9 @@ CreateConversionStmt: /***************************************************************************** * * QUERY: - * cluster on + * cluster on * cluster - * cluster ALL + * cluster * *****************************************************************************/ @@ -2317,8 +2319,8 @@ ClusterStmt: CLUSTER index_name ON qualified_name { $$ = cat_str(4, make_str("cluster"), $2, make_str("on"), $4); } | CLUSTER qualified_name { $$ = cat2_str(make_str("cluster"), $2); } - | CLUSTER ALL - { $$ = make_str("cluster all"); } + | CLUSTER + { $$ = make_str("cluster"); } ;