Skip to content

Commit db91f5b

Browse files
Merge branch 'dliu/pg-browser' of https://github.com/daniel-liu-bitio/node-postgres into dliu/pg-browser
2 parents aa6fcf4 + e3adc69 commit db91f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pg-cursor/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class Cursor extends EventEmitter {
231231
this._closePortal()
232232
// delay the callback until portal is finished closing
233233
// (this means a closeComplete followed by a readyForQuery)
234-
// (it's possible to have a readyForQuery without a closeComplete if called from moveAllAndClose)
234+
// (when moveAllAndClose calls closePortal, client will receive a readyForQuery generated by "MOVE ALL" simple query before receiving a closeComplete and a subsequent readyForQuery)
235235
var finishedClosing = false
236236
this.connection.once('closeComplete', function () {
237237
finishedClosing = true

0 commit comments

Comments
 (0)