From e25f9e4f5de929dd973875bf5302b9b8f96a5897 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 17 Jun 2002 20:38:04 +0000 Subject: [PATCH] Mark noise keyword actions with {} rather than returning TRUE, like opt_with and from_in. --- src/backend/parser/gram.y | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index 7cc551460f..d4d790d756 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.326 2002/06/17 20:27:43 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.327 2002/06/17 20:38:04 momjian Exp $ * * HISTORY * AUTHOR DATE MAJOR EVENT @@ -171,7 +171,7 @@ static void doNegateFloat(Value *v); %type OptSchemaName %type OptSchemaEltList -%type TriggerActionTime, TriggerForSpec, opt_trusted, opt_procedural +%type TriggerActionTime, TriggerForSpec, opt_trusted %type opt_lancompiler %type TriggerEvents @@ -223,7 +223,7 @@ static void doNegateFloat(Value *v); %type for_update_clause, opt_for_update_clause, update_list %type opt_all %type opt_table -%type opt_chain, opt_trans +%type opt_chain %type join_outer, join_qual %type join_type @@ -233,9 +233,9 @@ static void doNegateFloat(Value *v); %type opt_interval %type overlay_placing, substr_from, substr_for -%type opt_binary, opt_using, opt_instead, opt_cursor, opt_with +%type opt_binary, opt_instead, opt_cursor %type opt_with_copy, index_opt_unique, opt_verbose, opt_full -%type opt_freeze, analyze_keyword +%type opt_freeze %type copy_dirn, direction, reindex_type, drop_type, opt_column, event, comment_type @@ -530,8 +530,8 @@ CreateUserStmt: ; -opt_with: WITH { $$ = TRUE; } - | /*EMPTY*/ { $$ = TRUE; } +opt_with: WITH {} + | /*EMPTY*/ {} ; /***************************************************************************** @@ -1318,8 +1318,8 @@ copy_delimiter: | /*EMPTY*/ { $$ = "\t"; } ; -opt_using: USING { $$ = TRUE; } - | /*EMPTY*/ { $$ = TRUE; } +opt_using: USING {} + | /*EMPTY*/ {} ; copy_null: WITH NULL_P AS Sconst { $$ = $4; } @@ -1902,8 +1902,8 @@ DropPLangStmt: ; opt_procedural: - PROCEDURAL { $$ = TRUE; } - | /*EMPTY*/ { $$ = TRUE; } + PROCEDURAL {} + | /*EMPTY*/ {} ; /***************************************************************************** @@ -2498,8 +2498,8 @@ fetch_how_many: | PRIOR { $$ = -1; } ; -from_in: IN_P { } - | FROM { } +from_in: IN_P {} + | FROM {} ; @@ -3296,9 +3296,9 @@ TransactionStmt: } ; -opt_trans: WORK { $$ = TRUE; } - | TRANSACTION { $$ = TRUE; } - | /*EMPTY*/ { $$ = TRUE; } +opt_trans: WORK {} + | TRANSACTION {} + | /*EMPTY*/ {} ; opt_chain: AND NO CHAIN { $$ = FALSE; } @@ -3631,8 +3631,8 @@ AnalyzeStmt: ; analyze_keyword: - ANALYZE { $$ = TRUE; } - | ANALYSE /* British */ { $$ = TRUE; } + ANALYZE {} + | ANALYSE /* British */ {} ; opt_verbose: -- 2.40.0