summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/extern.h
diff options
context:
space:
mode:
authorMichael Meskes2010-01-15 10:44:39 +0000
committerMichael Meskes2010-01-15 10:44:39 +0000
commitbf69b535c028543194997f520bf7761f93166636 (patch)
treeb6a31958e5f06f6a055c5c17f7e2905e609802a5 /src/interfaces/ecpg/ecpglib/extern.h
parent40f908bdcdc726fc11912cd95dfd2f89603d1f37 (diff)
Applied patch by Boszormenyi Zoltan <[email protected]> to add DESCRIBE [OUTPUT] statement to ecpg.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/extern.h')
-rw-r--r--src/interfaces/ecpg/ecpglib/extern.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/ecpglib/extern.h b/src/interfaces/ecpg/ecpglib/extern.h
index 6a68bc9f155..a07bf406b14 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.36 2010/01/05 16:38:23 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/extern.h,v 1.37 2010/01/15 10:44:34 meskes Exp $ */
#ifndef _ECPG_LIB_EXTERN_H
#define _ECPG_LIB_EXTERN_H
@@ -60,6 +60,15 @@ struct statement
struct variable *outlist;
};
+/* structure to store prepared statements for a connection */
+struct prepared_statement
+{
+ char *name;
+ bool prepared;
+ struct statement *stmt;
+ struct prepared_statement *next;
+};
+
/* structure to store connections */
struct connection
{
@@ -139,6 +148,9 @@ struct descriptor *ecpggetdescp(int, char *);
struct descriptor *ecpg_find_desc(int line, const char *name);
+struct prepared_statement *ecpg_find_prepared_statement(const char *,
+ struct connection *, struct prepared_statement **);
+
bool ecpg_store_result(const PGresult *results, int act_field,
const struct statement * stmt, struct variable * var);
bool ecpg_store_input(const int, const bool, const struct variable *, char **, bool);