diff --git a/cf/src/connection.js b/cf/src/connection.js index c09b2720..93e47732 100644 --- a/cf/src/connection.js +++ b/cf/src/connection.js @@ -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) { @@ -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) { @@ -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 ]) }