Skip to content

Commit de0bf3e

Browse files
committed
Ensure dynamic queries aren't saved as prepared statements
1 parent 708fa4f commit de0bf3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ function Postgres(url, options) {
369369
}
370370

371371
function parseHelper(str, { first, rest }, xargs, types) {
372+
xargs.dynamic = true
372373
if (first !== null && typeof first === 'object' && typeof first[0] !== 'string') {
373374
if (isInsert.test(str))
374375
return insertHelper(first, rest, xargs, types)

0 commit comments

Comments
 (0)