diff options
author | Michael Meskes <meskes@postgresql.org> | 2003-10-19 13:22:33 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2003-10-19 13:22:33 +0000 |
commit | d5353acbc37e8043172855f8c148c96ae1694e61 (patch) | |
tree | d3596839a52b5199e63fe8791900978a499e688e /src | |
parent | 9d77708d83ee3c2f4a67d169e274e7b208008b7c (diff) | |
download | postgresql-d5353acbc37e8043172855f8c148c96ae1694e61.tar.gz postgresql-d5353acbc37e8043172855f8c148c96ae1694e61.zip |
Check for both Informix modes when parsing include files.
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/ecpg/ChangeLog | 5 | ||||
-rw-r--r-- | src/interfaces/ecpg/preproc/pgc.l | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog index 1bea5b8e22b..a75222dbd35 100644 --- a/src/interfaces/ecpg/ChangeLog +++ b/src/interfaces/ecpg/ChangeLog @@ -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 diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l index dd1c2891b46..eda6706ea27 100644 --- a/src/interfaces/ecpg/preproc/pgc.l +++ b/src/interfaces/ecpg/preproc/pgc.l @@ -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)); |