Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9e69760

Browse files
author
Michael Meskes
committed
Do not use ICONST/SCONST in rules other than Iconst/Sconst.
1 parent b87b52b commit 9e69760

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/backend/parser/gram.y

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.635 2008/11/07 18:25:06 tgl Exp $
14+
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.636 2008/11/12 15:50:20 meskes Exp $
1515
*
1616
* HISTORY
1717
* AUTHOR DATE MAJOR EVENT
@@ -1295,7 +1295,7 @@ opt_encoding:
12951295

12961296
ColId_or_Sconst:
12971297
ColId { $$ = $1; }
1298-
| SCONST { $$ = $1; }
1298+
| Sconst { $$ = $1; }
12991299
;
13001300

13011301
VariableResetStmt:
@@ -2834,7 +2834,7 @@ TriggerFuncArgs:
28342834
;
28352835

28362836
TriggerFuncArg:
2837-
ICONST
2837+
Iconst
28382838
{
28392839
char buf[64];
28402840
snprintf(buf, sizeof(buf), "%d", $1);
@@ -8848,7 +8848,7 @@ extract_list:
88488848
| /*EMPTY*/ { $$ = NIL; }
88498849
;
88508850

8851-
/* Allow delimited string SCONST in extract_arg as an SQL extension.
8851+
/* Allow delimited string Sconst in extract_arg as an SQL extension.
88528852
* - thomas 2001-04-12
88538853
*/
88548854
extract_arg:
@@ -8859,7 +8859,7 @@ extract_arg:
88598859
| HOUR_P { $$ = "hour"; }
88608860
| MINUTE_P { $$ = "minute"; }
88618861
| SECOND_P { $$ = "second"; }
8862-
| SCONST { $$ = $1; }
8862+
| Sconst { $$ = $1; }
88638863
;
88648864

88658865
/* OVERLAY() arguments
@@ -9333,9 +9333,9 @@ Iconst: ICONST { $$ = $1; };
93339333
Sconst: SCONST { $$ = $1; };
93349334
RoleId: ColId { $$ = $1; };
93359335

9336-
SignedIconst: ICONST { $$ = $1; }
9337-
| '+' ICONST { $$ = + $2; }
9338-
| '-' ICONST { $$ = - $2; }
9336+
SignedIconst: Iconst { $$ = $1; }
9337+
| '+' Iconst { $$ = + $2; }
9338+
| '-' Iconst { $$ = - $2; }
93399339
;
93409340

93419341
/*

0 commit comments

Comments
 (0)