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:38 -0400 |
commit | 08e04a5f99d50285edf8e89a18da67ce2d75d676 (patch) | |
tree | e767c747f0ebcbc0aeb3d0b6b4e5f1f573e2cb63 /src/interfaces/ecpg/ecpglib/connect.c | |
parent | c3c131e295af6530381a8ace749c81fcc8930059 (diff) |
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 ec01f67b61d..5f8455020e5 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 */ @@ -692,7 +690,6 @@ ECPGdisconnect(int lineno, const char *connection_name) struct connection *f = con; con = con->next; - ecpg_release_declared_statement(f->name); ecpg_finish(f); } } @@ -708,10 +705,7 @@ ECPGdisconnect(int lineno, const char *connection_name) return false; } else - { - ecpg_release_declared_statement(connection_name); ecpg_finish(con); - } } #ifdef ENABLE_THREAD_SAFETY |