diff options
author | Michael Meskes | 2007-09-26 10:57:01 +0000 |
---|---|---|
committer | Michael Meskes | 2007-09-26 10:57:01 +0000 |
commit | d49b20fbe68fdc66795fe9588ebd510d52a5b9eb (patch) | |
tree | 3c3b969d424551c8384711e64656c826661822f8 /src/interfaces/ecpg/ecpglib/extern.h | |
parent | 689df1bc77173c3a2cc308eee624d04c777b4bcf (diff) |
Applied patch by ITAGAKI Takahiro <[email protected]> to get prepare thread-safe.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/extern.h')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/extern.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/ecpglib/extern.h b/src/interfaces/ecpg/ecpglib/extern.h index c9e230447f7..f69730740be 100644 --- a/src/interfaces/ecpg/ecpglib/extern.h +++ b/src/interfaces/ecpg/ecpglib/extern.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/extern.h,v 1.26 2007/08/14 10:54:57 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/extern.h,v 1.27 2007/09/26 10:57:00 meskes Exp $ */ #ifndef _ECPG_LIB_EXTERN_H #define _ECPG_LIB_EXTERN_H @@ -91,6 +91,7 @@ struct connection bool committed; int autocommit; struct ECPGtype_information_cache *cache_head; + struct prepared_statement *prep_stmts; struct connection *next; }; @@ -144,7 +145,7 @@ bool ECPGstore_input(const int, const bool, const struct variable *, const char bool ECPGcheck_PQresult(PGresult *, int, PGconn *, enum COMPAT_MODE); void ECPGraise(int line, int code, const char *sqlstate, const char *str); void ECPGraise_backend(int line, PGresult *result, PGconn *conn, int compat); -char *ECPGprepared(const char *, int); +char *ECPGprepared(const char *, struct connection *, int); /* SQLSTATE values generated or processed by ecpglib (intentionally * not exported -- users should refer to the codes directly) */ |