Skip to content

Commit

Permalink
fix: replace escaped "?" with literal "?"
Browse files Browse the repository at this point in the history
#knex/documentation/issues/566
  • Loading branch information
jvnlwn committed Jan 5, 2024
1 parent 4ca3dd5 commit a895943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/formatter/rawFormatter.js
Expand Up @@ -12,7 +12,7 @@ function replaceRawArrBindings(raw, client) {

const sql = raw.sql.replace(/\\?\?\??/g, function (match) {
if (match === '\\?') {
return match;
return "?";
}

const value = values[index++];
Expand Down

0 comments on commit a895943

Please sign in to comment.