Skip to content

Commit

Permalink
Remove FLUSH from CF integration
Browse files Browse the repository at this point in the history
  • Loading branch information
tmthecoder committed Nov 22, 2023
1 parent 428475a commit bd72c09
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions cf/src/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,11 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose

return q.options.simple
? b().Q().str(q.statement.string + b.N).end()
: q.describeFirst
? Buffer.concat([describe(q), Flush])
: q.prepare
? q.prepared
? prepared(q)
: Buffer.concat([describe(q), prepared(q)])
: unnamed(q)
: q.prepare
? q.prepared
? prepared(q)
: Buffer.concat([describe(q), prepared(q)])
: unnamed(q)
}

function describe(q) {
Expand Down Expand Up @@ -604,7 +602,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
!query.statement.types[i] && (query.statement.types[i] = x.readUInt32BE(7 + i * 4))

query.prepare && (statements[query.signature] = query.statement)
query.describeFirst && !query.onlyDescribe && (write(prepared(query)), query.describeFirst = false)
query.describeFirst && !query.onlyDescribe && (query.describeFirst = false)
}

function RowDescription(x) {
Expand Down Expand Up @@ -953,7 +951,7 @@ 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
Sync
])
}

Expand Down

0 comments on commit bd72c09

Please sign in to comment.