summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/extern.h
diff options
context:
space:
mode:
authorMichael Meskes2007-10-02 09:50:00 +0000
committerMichael Meskes2007-10-02 09:50:00 +0000
commit0c2eb200d6e5fb59443ab31c6e9c38db9e2c7a7f (patch)
treecfd1f712dc166836f8cccf641c873b6b92548daf /src/interfaces/ecpg/ecpglib/extern.h
parentf1d37a9997ef8b00d53267ddfd0f5d7975017085 (diff)
ITAGAKI Takahiro <[email protected]> added thread-safe
descriptor handling
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/extern.h')
-rw-r--r--src/interfaces/ecpg/ecpglib/extern.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/interfaces/ecpg/ecpglib/extern.h b/src/interfaces/ecpg/ecpglib/extern.h
index f7e91d31270..0df6506b0ba 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.28 2007/09/30 11:38:48 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/extern.h,v 1.29 2007/10/02 09:49:59 meskes Exp $ */
#ifndef _ECPG_LIB_EXTERN_H
#define _ECPG_LIB_EXTERN_H
@@ -36,6 +36,8 @@ bool ECPGget_data(const PGresult *, int, int, int, enum ECPGttype type,
#ifdef ENABLE_THREAD_SAFETY
void ecpg_pthreads_init(void);
+#else
+#define ecpg_pthreads_init() ((void)0)
#endif
struct connection *ECPGget_connection(const char *);
char *ECPGalloc(long, int);
@@ -92,6 +94,7 @@ struct connection
int autocommit;
struct ECPGtype_information_cache *cache_head;
struct prepared_statement *prep_stmts;
+ struct descriptor *descriptors;
struct connection *next;
};
@@ -105,8 +108,6 @@ struct descriptor
struct descriptor_item *items;
};
-extern struct descriptor *all_descriptors;
-
struct descriptor_item
{
int num;
@@ -136,7 +137,7 @@ struct variable
struct variable *next;
};
-PGresult **ECPGdescriptor_lvalue(int line, const char *descriptor);
+struct descriptor *ECPGfind_desc(int line, const char *name);
bool ECPGstore_result(const PGresult *results, int act_field,
const struct statement * stmt, struct variable * var);