From 2ab6f367c05c2e76db0510bf99759494789d7dd7 Mon Sep 17 00:00:00 2001 From: Alex Anderson <191496+alxndrsn@users.noreply.github.com> Date: Thu, 28 Mar 2024 18:28:30 +0300 Subject: [PATCH] query: remove unused prop: isPreparedStatement (#3177) Use of this property was removed in 2020 (dd3ce616d0fbdb92a7e146ecf4171bf3c1b3ea97). Co-authored-by: alxndrsn --- packages/pg/lib/query.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/pg/lib/query.js b/packages/pg/lib/query.js index 3f5b9b749..fac4d86e3 100644 --- a/packages/pg/lib/query.js +++ b/packages/pg/lib/query.js @@ -28,7 +28,6 @@ class Query extends EventEmitter { // potential for multiple results this._results = this._result - this.isPreparedStatement = false this._canceledDueToError = false } @@ -189,10 +188,6 @@ class Query extends EventEmitter { // http://developer.postgresql.org/pgdocs/postgres/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY prepare(connection) { - // prepared statements need sync to be called after each command - // complete or when an error is encountered - this.isPreparedStatement = true - // TODO refactor this poor encapsulation if (!this.hasBeenParsed(connection)) { connection.parse({