diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-09-20 12:47:21 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-09-20 12:47:37 -0400 |
commit | 96b6c82c9dd4a6a91c7e54bf42d36da111959ec6 (patch) | |
tree | b4f489dd2f6504639cf4e5e521d184ed06041bb9 /src/interfaces/ecpg/ecpglib/connect.c | |
parent | d1b0007639a1cefb5dcecf44999a4461f4c34089 (diff) | |
download | postgresql-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/connect.c')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/connect.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/interfaces/ecpg/ecpglib/connect.c b/src/interfaces/ecpg/ecpglib/connect.c index 4f361510c36..b4f6089c282 100644 --- a/src/interfaces/ecpg/ecpglib/connect.c +++ b/src/interfaces/ecpg/ecpglib/connect.c @@ -340,8 +340,6 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p return false; } - memset(this, 0, sizeof(struct connection)); - if (dbname != NULL) { /* get the detail information from dbname */ @@ -707,7 +705,6 @@ ECPGdisconnect(int lineno, const char *connection_name) struct connection *f = con; con = con->next; - ecpg_release_declared_statement(f->name); ecpg_finish(f); } } @@ -723,10 +720,7 @@ ECPGdisconnect(int lineno, const char *connection_name) return false; } else - { - ecpg_release_declared_statement(connection_name); ecpg_finish(con); - } } #ifdef ENABLE_THREAD_SAFETY |