aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/error.c
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:38 -0400
commit08e04a5f99d50285edf8e89a18da67ce2d75d676 (patch)
treee767c747f0ebcbc0aeb3d0b6b4e5f1f573e2cb63 /src/interfaces/ecpg/ecpglib/error.c
parentc3c131e295af6530381a8ace749c81fcc8930059 (diff)
downloadpostgresql-08e04a5f99d50285edf8e89a18da67ce2d75d676.tar.gz
postgresql-08e04a5f99d50285edf8e89a18da67ce2d75d676.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/error.c')
-rw-r--r--src/interfaces/ecpg/ecpglib/error.c7
1 files changed, 0 insertions, 7 deletions
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),
/*------