aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/execute.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2008-02-07 11:09:13 +0000
committerMichael Meskes <meskes@postgresql.org>2008-02-07 11:09:13 +0000
commitfa0dc92fd8611ea299fec32458da844da8807ef3 (patch)
treebe7469464234b46bbec7d29687d3c9f3712a9839 /src/interfaces/ecpg/ecpglib/execute.c
parent8d363727f48ebc18dcc6a6a823fd4fe942ec0ca1 (diff)
downloadpostgresql-fa0dc92fd8611ea299fec32458da844da8807ef3.tar.gz
postgresql-fa0dc92fd8611ea299fec32458da844da8807ef3.zip
- Fixed segfault in ecpg when using an array element.
- Free all memory in auto-prepare mode.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/execute.c')
-rw-r--r--src/interfaces/ecpg/ecpglib/execute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c
index 2ccdcbb68fb..20231c62a7d 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.75 2008/01/15 10:31:47 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.76 2008/02/07 11:09:12 meskes Exp $ */
/*
* The aim is to get a simpler inteface to the database routines.
@@ -1489,7 +1489,7 @@ ECPGdo(const int lineno, const int compat, const int force_indicator, const char
*/
if (statement_type == ECPGst_prepnormal)
{
- if (!ecpg_auto_prepare(lineno, connection_name, questionmarks, &prepname, query))
+ if (!ecpg_auto_prepare(lineno, connection_name, compat, questionmarks, &prepname, query))
return (false);
/*