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
So the issue is that the format function takes two arguments: first is the sting of SQL with ? placeholders and the second is an array where each element corresponds to each ?. You see, you called it as the following:
So the first ? in your arg1 will be the first element in the array arg2, which is arg2[0], which is just [12, 34]. Really you wanted that to be the entire thing.
However, this is the behaviour:
It works correctly when using
escape
:The text was updated successfully, but these errors were encountered: