aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/execute.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2008-01-13 11:53:16 +0000
committerMichael Meskes <meskes@postgresql.org>2008-01-13 11:53:16 +0000
commit149db6b6b78101717e61a4325c52abe7e45d3137 (patch)
treec1b826ca6839ae489813c2b0ffa139f0c6d1bf17 /src/interfaces/ecpg/ecpglib/execute.c
parent9f2a20b66d789f4eee01e3cb92f15251826c2a2b (diff)
downloadpostgresql-149db6b6b78101717e61a4325c52abe7e45d3137.tar.gz
postgresql-149db6b6b78101717e61a4325c52abe7e45d3137.zip
Changed prototype for ECPGdo because some compilers don't like int/enum aliasing in there.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/execute.c')
-rw-r--r--src/interfaces/ecpg/ecpglib/execute.c6
1 files changed, 3 insertions, 3 deletions
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)