From 149db6b6b78101717e61a4325c52abe7e45d3137 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Sun, 13 Jan 2008 11:53:16 +0000 Subject: Changed prototype for ECPGdo because some compilers don't like int/enum aliasing in there. --- src/interfaces/ecpg/ecpglib/execute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/interfaces/ecpg/ecpglib/execute.c') diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c index 689421a9c0a..1b1f47217b2 100644 --- a/src/interfaces/ecpg/ecpglib/execute.c +++ b/src/interfaces/ecpg/ecpglib/execute.c @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.73 2007/11/15 21:14:45 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.74 2008/01/13 11:53:16 meskes Exp $ */ /* * The aim is to get a simpler inteface to the database routines. @@ -1430,7 +1430,7 @@ ecpg_execute(struct statement * stmt) } bool -ECPGdo(const int lineno, const int compat, const int force_indicator, const char *connection_name, const bool questionmarks, const enum ECPG_statement_type st, const char *query,...) +ECPGdo(const int lineno, const int compat, const int force_indicator, const char *connection_name, const bool questionmarks, const int st, const char *query,...) { va_list args; struct statement *stmt; @@ -1439,7 +1439,7 @@ ECPGdo(const int lineno, const int compat, const int force_indicator, const char char *oldlocale; enum ECPGttype type; struct variable **list; - enum ECPG_statement_type statement_type = st; + enum ECPG_statement_type statement_type = (enum ECPG_statement_type) st; char *prepname; if (!query) -- cgit v1.2.3