Skip to content

Commit

Permalink
query: remove unused prop: isPreparedStatement (#3177)
Browse files Browse the repository at this point in the history
Use of this property was removed in 2020 (dd3ce61).

Co-authored-by: alxndrsn <alxndrsn>
  • Loading branch information
alxndrsn committed Mar 28, 2024
1 parent b400d33 commit 2ab6f36
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/pg/lib/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Query extends EventEmitter {

// potential for multiple results
this._results = this._result
this.isPreparedStatement = false
this._canceledDueToError = false
}

Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 2ab6f36

Please sign in to comment.