Skip to content

Commit c42122a

Browse files
author
Simone Nigro
committed
fix(client): remove wrong check
1 parent 34499ce commit c42122a

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

packages/pg/lib/client.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -525,11 +525,6 @@ class Client extends EventEmitter {
525525
_handleParseComplete() {
526526
const activeQuery = this._pipelineMode ? this._getCurrentPipelineQuery() : this._getActiveQuery()
527527
if (activeQuery == null) {
528-
// In pipeline mode, parseComplete can arrive before we've processed the query
529-
// This is expected behavior - just ignore it if we don't have a query yet
530-
if (this._pipelineMode) {
531-
return
532-
}
533528
const error = new Error('Received unexpected parseComplete message from backend.')
534529
this._handleErrorEvent(error)
535530
return

0 commit comments

Comments
 (0)