Commit 9e697605 authored by Michael Meskes's avatar Michael Meskes

Do not use ICONST/SCONST in rules other than Iconst/Sconst.

parent b87b52bf
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.635 2008/11/07 18:25:06 tgl Exp $ * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.636 2008/11/12 15:50:20 meskes Exp $
* *
* HISTORY * HISTORY
* AUTHOR DATE MAJOR EVENT * AUTHOR DATE MAJOR EVENT
...@@ -1295,7 +1295,7 @@ opt_encoding: ...@@ -1295,7 +1295,7 @@ opt_encoding:
ColId_or_Sconst: ColId_or_Sconst:
ColId { $$ = $1; } ColId { $$ = $1; }
| SCONST { $$ = $1; } | Sconst { $$ = $1; }
; ;
VariableResetStmt: VariableResetStmt:
...@@ -2834,7 +2834,7 @@ TriggerFuncArgs: ...@@ -2834,7 +2834,7 @@ TriggerFuncArgs:
; ;
TriggerFuncArg: TriggerFuncArg:
ICONST Iconst
{ {
char buf[64]; char buf[64];
snprintf(buf, sizeof(buf), "%d", $1); snprintf(buf, sizeof(buf), "%d", $1);
...@@ -8848,7 +8848,7 @@ extract_list: ...@@ -8848,7 +8848,7 @@ extract_list:
| /*EMPTY*/ { $$ = NIL; } | /*EMPTY*/ { $$ = NIL; }
; ;
/* Allow delimited string SCONST in extract_arg as an SQL extension. /* Allow delimited string Sconst in extract_arg as an SQL extension.
* - thomas 2001-04-12 * - thomas 2001-04-12
*/ */
extract_arg: extract_arg:
...@@ -8859,7 +8859,7 @@ extract_arg: ...@@ -8859,7 +8859,7 @@ extract_arg:
| HOUR_P { $$ = "hour"; } | HOUR_P { $$ = "hour"; }
| MINUTE_P { $$ = "minute"; } | MINUTE_P { $$ = "minute"; }
| SECOND_P { $$ = "second"; } | SECOND_P { $$ = "second"; }
| SCONST { $$ = $1; } | Sconst { $$ = $1; }
; ;
/* OVERLAY() arguments /* OVERLAY() arguments
...@@ -9333,9 +9333,9 @@ Iconst: ICONST { $$ = $1; }; ...@@ -9333,9 +9333,9 @@ Iconst: ICONST { $$ = $1; };
Sconst: SCONST { $$ = $1; }; Sconst: SCONST { $$ = $1; };
RoleId: ColId { $$ = $1; }; RoleId: ColId { $$ = $1; };
SignedIconst: ICONST { $$ = $1; } SignedIconst: Iconst { $$ = $1; }
| '+' ICONST { $$ = + $2; } | '+' Iconst { $$ = + $2; }
| '-' ICONST { $$ = - $2; } | '-' Iconst { $$ = - $2; }
; ;
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment