From 08e04a5f99d50285edf8e89a18da67ce2d75d676 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 20 Sep 2019 12:47:21 -0400 Subject: 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 --- src/interfaces/ecpg/ecpglib/connect.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/interfaces/ecpg/ecpglib/connect.c') 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 -- cgit v1.2.3