Skip to content

Commit c6bf6be

Browse files
committed
Use final string for simple statements too - fixes porsager#532
1 parent 6778dc9 commit c6bf6be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
180180
throw Errors.generic('MAX_PARAMETERS_EXCEEDED', 'Max number of parameters (65534) exceeded')
181181

182182
return q.options.simple
183-
? b().Q().str(q.strings[0] + b.N).end()
183+
? b().Q().str(q.statement.string + b.N).end()
184184
: q.describeFirst
185185
? Buffer.concat([describe(q), Flush])
186186
: q.prepare

0 commit comments

Comments
 (0)