Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9e69760

Browse files
author
Michael Meskes
committed
Do not use ICONST/SCONST in rules other than Iconst/Sconst.
1 parentb87b52b commit9e69760

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎src/backend/parser/gram.y

Lines changed: 8 additions & 8 deletions
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
* AUTHORDATEMAJOR 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 stringSCONST in extract_arg as an SQL extension.
8851+
/* Allow delimited stringSconst 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)

[8]ページ先頭

©2009-2025 Movatter.jp