Skip to content

Commit

Permalink
Allow pg-native to prepare queries with zero params
Browse files Browse the repository at this point in the history
  • Loading branch information
brianc committed Jun 4, 2024
1 parent 34245d0 commit 377edea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pg-native/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Client.prototype.query = function (text, values, cb) {
cb = values
}

if (Array.isArray(values) && values.length > 0) {
if (Array.isArray(values)) {
queryFn = function () {
return self.pq.sendQueryParams(text, values)
}
Expand Down

0 comments on commit 377edea

Please sign in to comment.