Skip to content

Commit

Permalink
fix: sql-template-strings/tag compatibility (#2238)
Browse files Browse the repository at this point in the history
  • Loading branch information
BauerPh committed Oct 15, 2023
1 parent 6bc830e commit f2efe5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/connection.js
Expand Up @@ -622,7 +622,8 @@ class Connection extends EventEmitter {
// execute(options, cb)
options = {
...options,
...sql
...sql,
sql: sql.sql
};
if (typeof values === 'function') {
cb = values;
Expand Down Expand Up @@ -911,7 +912,8 @@ class Connection extends EventEmitter {
// query(options, cb)
options = {
...options,
...sql
...sql,
sql: sql.sql
};
if (typeof values === 'function') {
cb = values;
Expand Down

0 comments on commit f2efe5a

Please sign in to comment.