-
Notifications
You must be signed in to change notification settings - Fork 100
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
Binding variables conflicts with some Postgres SQL queries. #111
Comments
Can you tell if #108 would resolve that? |
Alternatively, would it be enough to have the interpolator ignore |
I can't tell just by looking at that particular PR (it is rather massive). Your second suggestion would probably be the best solution. I am not sure how the interpolator works (haven't looked), but it should be something equivalent to this regexp: |
(/me nods) The code in question is in Rebuilder::rebuildPart(). If you want to submit a PR with a test I'll be happy to review, otherwise I'll come back around to this at some point in the future. |
I will see what I can do. I won't be around this weekend, and don't have time to dig into it today, but I will take a look next week. |
Also, sorry, I totally missed #104 when looking through the open issues to see if this was mentioned anywhere. I am actually just going to close this issue, and track that issue. if I come up with an easier solution than that massive pull request, I will submit that. |
@dhrrgn Revisiting this after a long hiatus; this should be fixed on the 2.x branch now. Sorry for the very extended delay. |
Assume you are trying to execute the following SQL query.
The
::type
syntax, in Postgres, casts the value to thattype
(above we are converting the string to aTIMESTAMP
). Now, lets try to execute the query and bind a value:This gives you an error: "Undefined offset: 0" in
src/Rebuilder.php
on line 247.The text was updated successfully, but these errors were encountered: