From 96b6c82c9dd4a6a91c7e54bf42d36da111959ec6 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/error.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/interfaces/ecpg/ecpglib/error.c') diff --git a/src/interfaces/ecpg/ecpglib/error.c b/src/interfaces/ecpg/ecpglib/error.c index c346a6b86ce..9c56991a1e8 100644 --- a/src/interfaces/ecpg/ecpglib/error.c +++ b/src/interfaces/ecpg/ecpglib/error.c @@ -200,13 +200,6 @@ ecpg_raise(int line, int code, const char *sqlstate, const char *str) ecpg_gettext("could not connect to database \"%s\" on line %d"), str, line); break; - case ECPG_INVALID_CURSOR: - snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc), - /*------ - translator: this string will be truncated at 149 characters expanded. */ - ecpg_gettext("cursor is invalid on line %d"), line); - break; - default: snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc), /*------ -- cgit v1.2.3