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
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.121 2003/10/19 13:22:33 meskes Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.122 2003/10/31 14:10:41 meskes Exp $
*
*-------------------------------------------------------------------------
*/
{xcinside} { ECHO; }
{op_chars} { ECHO; }
-<> { mmerror(PARSE_ERROR, ET_ERROR, "Unterminated /* comment"); }
+<> { mmerror(PARSE_ERROR, ET_FATAL, "Unterminated /* comment"); }
{xbstart} {
token_start = yytext;
{xbinside} { addlit(yytext, yyleng); }
{xhcat} |
{xbcat} { /* ignore */ }
-<> { mmerror(PARSE_ERROR, ET_ERROR, "Unterminated bit string"); }
+<> { mmerror(PARSE_ERROR, ET_FATAL, "Unterminated bit string"); }
{xhstart} {
token_start = yytext;
return XCONST;
}
-<> { mmerror(PARSE_ERROR, ET_ERROR, "Unterminated hexadecimal integer"); }
+<> { mmerror(PARSE_ERROR, ET_FATAL, "Unterminated hexadecimal integer"); }
{xnstart} {
/* National character.
* Need to remember type info to flow it forward into the parser.
{xqinside} { addlit(yytext, yyleng); }
{xqescape} { addlit(yytext, yyleng); }
{xqoctesc} { addlit(yytext, yyleng); }
-{xqcat} { /* ignore */ }
+{xqcat} { /* ignore */ }
-<> { mmerror(PARSE_ERROR, ET_ERROR, "Unterminated quoted string"); }
+<> { mmerror(PARSE_ERROR, ET_FATAL, "Unterminated quoted string"); }
{xdstart} {
state_before = YYSTATE;
}
{xddouble} { addlitchar('"'); }
{xdinside} { addlit(yytext, yyleng); }
-<> { mmerror(PARSE_ERROR, ET_ERROR, "Unterminated quoted identifier"); }
+<> { mmerror(PARSE_ERROR, ET_FATAL, "Unterminated quoted identifier"); }
{xdstart} {
state_before = YYSTATE;
BEGIN(xdc);