From e136986afb92e7d1911334c27e306c3fb6c9a6ce Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 19 Jun 2002 15:40:58 +0000 Subject: [PATCH] Properly mark rules that return no value. --- src/backend/parser/gram.y | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index f7e6fb84e2..1c499f417d 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.330 2002/06/18 17:56:41 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.331 2002/06/19 15:40:58 momjian Exp $ * * HISTORY * AUTHOR DATE MAJOR EVENT @@ -161,7 +161,6 @@ static void doNegateFloat(Value *v); %type createdb_opt_list %type createdb_opt_item -%type opt_equal %type opt_lock, lock_type %type opt_force, opt_or_replace @@ -224,12 +223,10 @@ static void doNegateFloat(Value *v); %type createfunc_opt_item %type func_arg, func_return, func_type, aggr_argtype -%type opt_arg, TriggerForOpt, TriggerForType, OptTemp, OptWithOids +%type opt_arg, TriggerForType, OptTemp, OptWithOids %type for_update_clause, opt_for_update_clause, update_list %type opt_all -%type opt_table -%type opt_chain %type join_outer, join_qual %type join_type @@ -310,8 +307,6 @@ static void doNegateFloat(Value *v); %type constraints_set_list %type constraints_set_mode -%type opt_as - /* * If you make any token changes, update the keyword table in @@ -2044,8 +2039,8 @@ TriggerForSpec: ; TriggerForOpt: - EACH { $$ = TRUE; } - | /*EMPTY*/ { $$ = FALSE; } + EACH {} + | /*EMPTY*/ {} ; TriggerForType: @@ -3360,7 +3355,7 @@ opt_trans: WORK {} | /*EMPTY*/ {} ; -opt_chain: AND NO CHAIN { $$ = FALSE; } +opt_chain: AND NO CHAIN {} | AND CHAIN { /* SQL99 asks that conforming dbs reject AND CHAIN @@ -3368,7 +3363,6 @@ opt_chain: AND NO CHAIN { $$ = FALSE; } * - thomas 2000-08-06 */ elog(ERROR, "COMMIT / CHAIN not yet supported"); - $$ = TRUE; } ; @@ -3511,8 +3505,8 @@ createdb_opt_item: * equals for backward compability, and it doesn't seem worth removing it. * 2002-02-25 */ -opt_equal: '=' { $$ = TRUE; } - | /*EMPTY*/ { $$ = FALSE; } +opt_equal: '=' {} + | /*EMPTY*/ {} ; @@ -3578,8 +3572,8 @@ CreateDomainStmt: } ; -opt_as: AS {$$ = TRUE; } - | /* EMPTY */ {$$ = FALSE; } +opt_as: AS {} + | /* EMPTY */ {} ; @@ -4088,8 +4082,8 @@ OptTempTableName: } ; -opt_table: TABLE { $$ = TRUE; } - | /*EMPTY*/ { $$ = FALSE; } +opt_table: TABLE {} + | /*EMPTY*/ {} ; opt_all: ALL { $$ = TRUE; } -- 2.40.0