-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch for trailing junk on param references
- Loading branch information
Showing
3 changed files
with
2,844 additions
and
2,939 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l | ||
index 154defc6b8..26a54e1505 100644 | ||
--- a/src/backend/parser/scan.l | ||
+++ b/src/backend/parser/scan.l | ||
@@ -420,7 +420,6 @@ numeric_junk {numeric}{ident_start} | ||
real_junk {real}{ident_start} | ||
|
||
-param \${decinteger} | ||
+param \${decdigit}+ | ||
-param_junk \${decinteger}{ident_start} | ||
|
||
other . | ||
|
||
@@ -1013,10 +1012,6 @@ other . | ||
yylval->ival = atol(yytext + 1); | ||
return PARAM; | ||
} | ||
-{param_junk} { | ||
- SET_YYLLOC(); | ||
- yyerror("trailing junk after parameter"); | ||
- } | ||
|
||
{decinteger} { | ||
SET_YYLLOC(); |
Oops, something went wrong.