aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/preproc/ecpg.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2003-02-14 13:17:13 +0000
committerMichael Meskes <meskes@postgresql.org>2003-02-14 13:17:13 +0000
commit3a335375a961f28053195b2fda15dbe4d40ffc4a (patch)
tree4c32edb2cc0735eecc10ed4d33b90fc35666269e /src/interfaces/ecpg/preproc/ecpg.c
parentaa874ee0d7fcf57257f1c405d81e99503fe0d593 (diff)
downloadpostgresql-3a335375a961f28053195b2fda15dbe4d40ffc4a.tar.gz
postgresql-3a335375a961f28053195b2fda15dbe4d40ffc4a.zip
- Synced parser and keyword file.
- More work on Informix compatibility.
Diffstat (limited to 'src/interfaces/ecpg/preproc/ecpg.c')
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/preproc/ecpg.c b/src/interfaces/ecpg/preproc/ecpg.c
index d09c6d14744..567abfa1590 100644
--- a/src/interfaces/ecpg/preproc/ecpg.c
+++ b/src/interfaces/ecpg/preproc/ecpg.c
@@ -1,4 +1,4 @@
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/ecpg.c,v 1.59 2003/02/13 13:11:52 meskes Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/ecpg.c,v 1.60 2003/02/14 13:17:13 meskes Exp $ */
/* New main for ecpg, the PostgreSQL embedded SQL precompiler. */
/* (C) Michael Meskes <meskes@postgresql.org> Feb 5th, 1998 */
@@ -315,6 +315,10 @@ main(int argc, char *const argv[])
/* we need several includes */
fprintf(yyout, "/* Processed by ecpg (%d.%d.%d) */\n/* These four include files are added by the preprocessor */\n#include <ecpgtype.h>\n#include <ecpglib.h>\n#include <ecpgerrno.h>\n#include <sqlca.h>\n#line 1 \"%s\"\n", MAJOR_VERSION, MINOR_VERSION, PATCHLEVEL, input_filename);
+ /* add some compatibility headers */
+ if (compat == ECPG_COMPAT_INFORMIX)
+ fprintf(yyout, "/* Needed for informix compatibility */\n#include <ecpg_informix.h>\n");
+
/* and parse the source */
yyparse();