Skip to content

Commit

Permalink
fix: correctly pass values when used with sql-template-strings library (
Browse files Browse the repository at this point in the history
  • Loading branch information
fiacc committed Nov 3, 2023
1 parent fa47d0b commit 6444f99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/connection.js
Expand Up @@ -623,7 +623,8 @@ class Connection extends EventEmitter {
options = {
...options,
...sql,
sql: sql.sql
sql: sql.sql,
values: sql.values
};
if (typeof values === 'function') {
cb = values;
Expand Down Expand Up @@ -913,7 +914,8 @@ class Connection extends EventEmitter {
options = {
...options,
...sql,
sql: sql.sql
sql: sql.sql,
values: sql.values
};
if (typeof values === 'function') {
cb = values;
Expand Down

0 comments on commit 6444f99

Please sign in to comment.