Skip to content

Commit

Permalink
Fix node 18 (based on sidorares#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
nofarham authored Jan 22, 2024
1 parent e6a9306 commit b263402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class Query extends Command {
});
this.on('end', () => {
stream.push(null); // pushing null, indicating EOF
stream.emit('close'); // notify readers that query has completed
setImmediate(() => stream.emit('close')); // notify readers that query has completed
});
this.on('fields', fields => {
stream.emit('fields', fields); // replicate old emitter
Expand Down

0 comments on commit b263402

Please sign in to comment.