Skip to content

Commit 0ed940c

Browse files
committed
Merge pull request #1 from grncdr/patch-1
Emit 'close' events when query completes
2 parents 0df516c + e111715 commit 0ed940c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ QueryStream.prototype.handleCommandComplete = function(msg) {
9898
}
9999

100100
QueryStream.prototype.handleReadyForQuery = function() {
101+
this.emit('close')
101102
this.push(null)
102103
}
103104

0 commit comments

Comments
 (0)