Skip to content

Commit

Permalink
Only necessary to do flush during cursor - closes #736
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Apr 9, 2024
1 parent cc688c6 commit 9ab8f85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -956,14 +956,14 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
function Execute(portal = '', rows = 0) {
return Buffer.concat([
b().E().str(portal + b.N).i32(rows).end(),
Flush
rows === 0 ? Sync : Flush
])
}

function Close(portal = '') {
return Buffer.concat([
b().C().str('P').str(portal + b.N).end(),
b().S().end()
Sync
])
}

Expand Down

0 comments on commit 9ab8f85

Please sign in to comment.