Skip to content

Commit

Permalink
Use final string for simple statements too - fixes #532
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Feb 1, 2023
1 parent 6778dc9 commit c6bf6be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
throw Errors.generic('MAX_PARAMETERS_EXCEEDED', 'Max number of parameters (65534) exceeded')

return q.options.simple
? b().Q().str(q.strings[0] + b.N).end()
? b().Q().str(q.statement.string + b.N).end()
: q.describeFirst
? Buffer.concat([describe(q), Flush])
: q.prepare
Expand Down

0 comments on commit c6bf6be

Please sign in to comment.