Skip to content

Commit 2ab6f36

Browse files
authored
query: remove unused prop: isPreparedStatement (brianc#3177)
Use of this property was removed in 2020 (dd3ce61). Co-authored-by: alxndrsn <alxndrsn>
1 parent b400d33 commit 2ab6f36

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/pg/lib/query.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class Query extends EventEmitter {
2828

2929
// potential for multiple results
3030
this._results = this._result
31-
this.isPreparedStatement = false
3231
this._canceledDueToError = false
3332
}
3433

@@ -189,10 +188,6 @@ class Query extends EventEmitter {
189188

190189
// http://developer.postgresql.org/pgdocs/postgres/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY
191190
prepare(connection) {
192-
// prepared statements need sync to be called after each command
193-
// complete or when an error is encountered
194-
this.isPreparedStatement = true
195-
196191
// TODO refactor this poor encapsulation
197192
if (!this.hasBeenParsed(connection)) {
198193
connection.parse({

0 commit comments

Comments
 (0)