提交 d5353acb 编写于 作者: M Michael Meskes

Check for both Informix modes when parsing include files.

上级 9d77708d
......@@ -1683,6 +1683,11 @@ Tue Oct 7 07:45:09 CEST 2003
Tue Oct 7 20:26:06 CEST 2003
- Fixed floating point exception in long=>numeric transformation.
Sun Oct 19 15:20:16 CEST 2003
- Need to check for both Informic compat modes when parsing include
files.
- Set ecpg version to 3.0.0
- Set ecpg library to 4.0.0
- Set pgtypes library to 1.0.0
......
......@@ -12,7 +12,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.120 2003/08/04 02:40:15 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.121 2003/10/19 13:22:33 meskes Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -1066,7 +1066,8 @@ parse_include(void)
/* If file name is enclosed in '"' remove these and look only in '.' */
/* Informix does look into all include paths though, except filename starts with '/' */
if ((yytext[0] == '"' && yytext[i] == '"') && (compat != ECPG_COMPAT_INFORMIX || yytext[1] == '/'))
if ((yytext[0] == '"' && yytext[i] == '"') &&
((compat != ECPG_COMPAT_INFORMIX && compat != ECPG_COMPAT_INFORMIX_SE) || yytext[1] == '/'))
{
yytext[i] = '\0';
memmove(yytext, yytext+1, strlen(yytext));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册