8000 Mark noise keyword actions with {} rather than returning TRUE, like · larkly/postgres-docker@e25f9e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit e25f9e4

Browse files
committed
Mark noise keyword actions with {} rather than returning TRUE, like
opt_with and from_in.
1 parent 42423c7 commit e25f9e4

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/backend/parser/gram.y

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.326 2002/06/17 20:27:43 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.327 2002/06/17 20:38:04 momjian Exp $
1515
*
1616
* HISTORY
1717
* AUTHOR DATE MAJOR EVENT
@@ -171,7 +171,7 @@ static void doNegateFloat(Value *v);
171171
%type <str> OptSchemaName
172172
%type <list> OptSchemaEltList
173173

174-
%type <boolean> TriggerActionTime, TriggerForSpec, opt_trusted, opt_procedural
174+
%type <boolean> TriggerActionTime, TriggerForSpec, opt_trusted
175175
%type <str> opt_lancompiler
176176

177177
%type <str> TriggerEvents
@@ -223,7 +223,7 @@ static void doNegateFloat(Value *v);
223223
%type <list> for_update_clause, opt_for_update_clause, update_list
224224
%type <boolean> opt_all
225225
%type <boolean> opt_table
226-
%type <boolean> opt_chain, opt_trans
226+
%type <boolean> opt_chain
227227

228228
%type <node> join_outer, join_qual
229229
%type <jtype> join_type
@@ -233,9 +233,9 @@ static void doNegateFloat(Value *v);
233233
%type <ival> opt_interval
234234
%type <node> overlay_placing, substr_from, substr_for
235235

236-
%type <boolean> opt_binary, opt_using, opt_instead, opt_cursor, opt_with
236+
%type <boolean> opt_binary, opt_instead, opt_cursor
237237
%type <boolean> opt_with_copy, index_opt_unique, opt_verbose, opt_full
238-
%type <boolean> opt_freeze, analyze_keyword
238+
%type <boolean> opt_freeze
239239

240240
%type <ival> copy_dirn, direction, reindex_type, drop_type,
241241
opt_column, event, comment_type
@@ -530,8 +530,8 @@ CreateUserStmt:
530530
;
531531

532532

533-
opt_with: WITH { $$ = TRUE; }
534-
| /*EMPTY*/ { $$ = TRUE; }
533+
opt_with: WITH {}
534+
| /*EMPTY*/ {}
535535
;
536536

537537
/*****************************************************************************
@@ -1318,8 +1318,8 @@ copy_delimiter:
13181318
| /*EMPTY*/ { $$ = "\t"; }
13191319
;
13201320

1321-
opt_using: USING { $$ = TRUE; }
1322-
| /*EMPTY*/ { $$ = TRUE; }
1321+
opt_using: USING {}
1322+
| /*EMPTY*/ {}
13231323
;
13241324

13251325
copy_null: WITH NULL_P AS Sconst { $$ = $4; }
@@ -1902,8 +1902,8 @@ DropPLangStmt:
19021902
;
19031903

19041904
opt_procedural:
1905-
PROCEDURAL { $$ = TRUE; }
1906-
| /*EMPTY*/ { $$ = TRUE; }
1905+
PROCEDURAL {}
1906+
| /*EMPTY*/ {}
19071907
;
19081908

19091909
/*****************************************************************************
@@ -2498,8 +2498,8 @@ fetch_how_many:
24982498
| PRIOR { $$ = -1; }
24992499
;
25002500

2501-
from_in: IN_P { }
2502-
| FROM { }
2501+
from_in: IN_P {}
2502+
| FROM {}
25032503
;
25042504

25052505

@@ -3296,9 +3296,9 @@ TransactionStmt:
32963296
}
32973297
;
32983298

3299-
opt_trans: WORK { $$ = TRUE; }
3300-
| TRANSACTION { $$ = TRUE; }
3301-
| /*EMPTY*/ { $$ = TRUE; }
3299+
opt_trans: WORK {}
3300+
| TRANSACTION {}
3301+
| /*EMPTY*/ {}
33023302
;
33033303

33043304
opt_chain: AND NO CHAIN { $$ = FALSE; }
@@ -3631,8 +3631,8 @@ AnalyzeStmt:
36313631
;
36323632

36333633
analyze_keyword:
3634-
ANALYZE { $$ = TRUE; }
3635-
| ANALYSE /* British */ { $$ = TRUE; }
3634+
ANALYZE {}
3635+
| ANALYSE /* British */ {}
36363636
;
36373637

36383638
opt_verbose:

0 commit comments

Comments
 (0)
0