You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
jvnlwn
changed the title
Escaped "?" (i.e. "\\\\?") not replaced with "?" when using raw
Escaped "?" (i.e. "\\?") not replaced with "?" when using rawJan 5, 2024
Under Raw Parameter Binding, the docs say:
The docs give this example:
Expected behavior
The knex
raw
function should replace all escaped"\\?"
with"?"
.Actual behavior
But if you debug the result of that example, you'll see:
Notice that the escaped
"\\?"
left intact in the generatedsql
which will produce a syntax error.Solution
Change this line to return
"?"
.The text was updated successfully, but these errors were encountered: