aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/connect.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2007-09-26 10:57:01 +0000
committerMichael Meskes <meskes@postgresql.org>2007-09-26 10:57:01 +0000
commitd49b20fbe68fdc66795fe9588ebd510d52a5b9eb (patch)
tree3c3b969d424551c8384711e64656c826661822f8 /src/interfaces/ecpg/ecpglib/connect.c
parent689df1bc77173c3a2cc308eee624d04c777b4bcf (diff)
downloadpostgresql-d49b20fbe68fdc66795fe9588ebd510d52a5b9eb.tar.gz
postgresql-d49b20fbe68fdc66795fe9588ebd510d52a5b9eb.zip
Applied patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> to get prepare thread-safe.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/connect.c')
-rw-r--r--src/interfaces/ecpg/ecpglib/connect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/ecpglib/connect.c b/src/interfaces/ecpg/ecpglib/connect.c
index 421155bb923..40f5d7ead34 100644
--- a/src/interfaces/ecpg/ecpglib/connect.c
+++ b/src/interfaces/ecpg/ecpglib/connect.c
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.42 2007/08/14 10:01:52 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.43 2007/09/26 10:57:00 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
@@ -460,6 +460,7 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
this->name = ECPGstrdup(realname, lineno);
this->cache_head = NULL;
+ this->prep_stmts = NULL;
if (all_connections == NULL)
this->next = NULL;