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
e6152300
Commit
e6152300
authored
Oct 31, 2003
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If EOF is found inside a string/comment/etc. stop parsing.
parent
ef1b846d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/ecpg/preproc/pgc.l
+7
-7
No files found.
src/interfaces/ecpg/ChangeLog
View file @
e6152300
...
...
@@ -1701,6 +1701,10 @@ Sun Oct 26 10:47:05 CET 2003
Thu Oct 30 11:12:37 CET 2003
- Applied patch by Dave Cramer fixing several bugs in compatlib.
Fri Oct 31 15:09:22 CET 2003
- If EOF is found inside a string/comment/etc. stop parsing.
- Set ecpg version to 3.0.0
- Set ecpg library to 4.0.0
- Set pgtypes library to 1.0.0
...
...
src/interfaces/ecpg/preproc/pgc.l
View file @
e6152300
...
...
@@ -12,7 +12,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.12
1 2003/10/19 13:22:33
meskes Exp $
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.12
2 2003/10/31 14:10:41
meskes Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -328,7 +328,7 @@ cppline {space}*#(.*\\{space})+.*
<xc>{xcinside} { ECHO; }
<xc>{op_chars} { ECHO; }
<xc><<EOF>>
{ mmerror(PARSE_ERROR, ET_ERROR
, "Unterminated /* comment"); }
<xc><<EOF>>
{ mmerror(PARSE_ERROR, ET_FATAL
, "Unterminated /* comment"); }
<SQL>{xbstart} {
token_start = yytext;
...
...
@@ -348,7 +348,7 @@ cppline {space}*#(.*\\{space})+.*
<xb>{xbinside} { addlit(yytext, yyleng); }
<xh>{xhcat} |
<xb>{xbcat} { /* ignore */ }
<xb><<EOF>> { mmerror(PARSE_ERROR, ET_
ERROR
, "Unterminated bit string"); }
<xb><<EOF>> { mmerror(PARSE_ERROR, ET_
FATAL
, "Unterminated bit string"); }
<SQL>{xhstart} {
token_start = yytext;
...
...
@@ -361,7 +361,7 @@ cppline {space}*#(.*\\{space})+.*
return XCONST;
}
<xh><<EOF>>
{ mmerror(PARSE_ERROR, ET_ERROR
, "Unterminated hexadecimal integer"); }
<xh><<EOF>>
{ mmerror(PARSE_ERROR, ET_FATAL
, "Unterminated hexadecimal integer"); }
<SQL>{xnstart} {
/* National character.
* Need to remember type info to flow it forward into the parser.
...
...
@@ -386,9 +386,9 @@ cppline {space}*#(.*\\{space})+.*
<xq>{xqinside} { addlit(yytext, yyleng); }
<xq>{xqescape} { addlit(yytext, yyleng); }
<xq>{xqoctesc} { addlit(yytext, yyleng); }
<xq>{xqcat}
{ /* ignore */ }
<xq>{xqcat} { /* ignore */ }
<xq><<EOF>>
{ mmerror(PARSE_ERROR, ET_ERROR
, "Unterminated quoted string"); }
<xq><<EOF>>
{ mmerror(PARSE_ERROR, ET_FATAL
, "Unterminated quoted string"); }
<SQL>{xdstart} {
state_before = YYSTATE;
...
...
@@ -409,7 +409,7 @@ cppline {space}*#(.*\\{space})+.*
}
<xd>{xddouble} { addlitchar('"'); }
<xd>{xdinside} { addlit(yytext, yyleng); }
<xd,xdc><<EOF>> { mmerror(PARSE_ERROR, ET_
ERROR
, "Unterminated quoted identifier"); }
<xd,xdc><<EOF>> { mmerror(PARSE_ERROR, ET_
FATAL
, "Unterminated quoted identifier"); }
<C,SQL>{xdstart} {
state_before = YYSTATE;
BEGIN(xdc);
...
...
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