aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/ecpglib_extern.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-09-20 12:47:21 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2019-09-20 12:47:37 -0400
commit96b6c82c9dd4a6a91c7e54bf42d36da111959ec6 (patch)
treeb4f489dd2f6504639cf4e5e521d184ed06041bb9 /src/interfaces/ecpg/ecpglib/ecpglib_extern.h
parentd1b0007639a1cefb5dcecf44999a4461f4c34089 (diff)
downloadpostgresql-96b6c82c9dd4a6a91c7e54bf42d36da111959ec6.tar.gz
postgresql-96b6c82c9dd4a6a91c7e54bf42d36da111959ec6.zip
Revert "Add DECLARE STATEMENT support to ECPG."
This reverts commit bd7c95f0c1a38becffceb3ea7234d57167f6d4bf, along with assorted follow-on fixes. There are some questions about the definition and implementation of that statement, and we don't have time to resolve them before v13 release. Rather than ship the feature and then have backwards-compatibility concerns constraining any redesign, let's remove it for now and try again later. Discussion: https://postgr.es/m/TY2PR01MB2443EC8286995378AEB7D9F8F5B10@TY2PR01MB2443.jpnprd01.prod.outlook.com
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/ecpglib_extern.h')
-rw-r--r--src/interfaces/ecpg/ecpglib/ecpglib_extern.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/interfaces/ecpg/ecpglib/ecpglib_extern.h b/src/interfaces/ecpg/ecpglib/ecpglib_extern.h
index de8241bfc88..f788bfd1eac 100644
--- a/src/interfaces/ecpg/ecpglib/ecpglib_extern.h
+++ b/src/interfaces/ecpg/ecpglib/ecpglib_extern.h
@@ -88,15 +88,6 @@ struct statement
PGresult *results;
};
-/* structure to store declared statements */
-struct declared_statement
-{
- char *name; /* declared name */
- char *connection_name;
- char *cursor_name;
- struct declared_statement *next;
-};
-
/* structure to store prepared statements for a connection */
struct prepared_statement
{
@@ -106,12 +97,6 @@ struct prepared_statement
struct prepared_statement *next;
};
-struct cursor_statement
-{
- char *name; /* cursor name */
- struct cursor_statement *next;
-};
-
/* structure to store connections */
struct connection
{
@@ -120,7 +105,6 @@ struct connection
bool autocommit;
struct ECPGtype_information_cache *cache_head;
struct prepared_statement *prep_stmts;
- struct cursor_statement *cursor_stmts;
struct connection *next;
};
@@ -202,11 +186,6 @@ struct descriptor *ecpg_find_desc(int line, const char *name);
struct prepared_statement *ecpg_find_prepared_statement(const char *,
struct connection *, struct prepared_statement **);
-void ecpg_update_declare_statement(const char *, const char *, const int);
-char *ecpg_get_con_name_by_declared_name(const char *);
-const char *ecpg_get_con_name_by_cursor_name(const char *);
-void ecpg_release_declared_statement(const char *);
-
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);