Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
2efb8e80
Commit
2efb8e80
authored
Aug 18, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code review for 'at character n' patch --- point at proper end of
a token scanned by multiple lex rules.
parent
2c6b34d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
src/backend/parser/scan.l
src/backend/parser/scan.l
+8
-7
src/test/regress/expected/strings.out
src/test/regress/expected/strings.out
+1
-1
No files found.
src/backend/parser/scan.l
View file @
2efb8e80
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.
99 2002/08/17 13:06:50 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.
100 2002/08/18 03:35:08 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -582,12 +582,13 @@ other .
...
@@ -582,12 +582,13 @@ other .
void
void
yyerror(const char *message)
yyerror(const char *message)
{
{
if(yyleng == 1 && *yytext == YY_END_OF_BUFFER_CHAR)
const char *loc = token_start ? token_start : yytext;
elog(ERROR, "parser: %s at end of input",message);
else
if (*loc == YY_END_OF_BUFFER_CHAR)
elog(ERROR, "parser: %s at or near \"%s\" at character %i",
elog(ERROR, "parser: %s at end of input", message);
message,token_start ? token_start : yytext,
else
(unsigned int)(yytext - scanbuf + 1));
elog(ERROR, "parser: %s at or near \"%s\" at character %d",
message, loc, (loc - scanbuf + 1));
}
}
...
...
src/test/regress/expected/strings.out
View file @
2efb8e80
...
@@ -18,7 +18,7 @@ SELECT 'first line'
...
@@ -18,7 +18,7 @@ SELECT 'first line'
' - next line' /* this comment is not allowed here */
' - next line' /* this comment is not allowed here */
' - third line'
' - third line'
AS "Illegal comment within continuation";
AS "Illegal comment within continuation";
ERROR: parser: parse error at or near "' - third line'" at character
89
ERROR: parser: parse error at or near "' - third line'" at character
75
--
--
-- test conversions between various string types
-- test conversions between various string types
-- E021-10 implicit casting among the character data types
-- E021-10 implicit casting among the character data types
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment