-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reusing the same parameter in WHERE fails to parse #99
Comments
typeofweb
changed the title
Reusing the same parameter in WHERE failes to parse
Reusing the same parameter in WHERE fails to parse
Jun 5, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem
Using the same argument in 2 places inside a
WHERE
fails to parse. For example:Results in:
However, if I keep the query almost the same but just remove one
:category
, it works:(No errors)
(
could not determine data type of parameter $1
, which makes sense and it parsed just fine)DB Logs
Looking at my database logs I can't help but notice that the first usage of the parameter was not replaced by
$1
:The text was updated successfully, but these errors were encountered: