-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
DB where Callback Bug #2831
Comments
afbora
added a commit
that referenced
this issue
Apr 6, 2022
afbora
added a commit
that referenced
this issue
Apr 6, 2022
afbora
added a commit
that referenced
this issue
Apr 6, 2022
afbora
added a commit
that referenced
this issue
Apr 8, 2022
afbora
added a commit
that referenced
this issue
Apr 8, 2022
afbora
added a commit
that referenced
this issue
Apr 8, 2022
afbora
added a commit
that referenced
this issue
Apr 8, 2022
afbora
added a commit
that referenced
this issue
Apr 8, 2022
afbora
added a commit
that referenced
this issue
Apr 8, 2022
✅ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Using a callback in the where clause takes on everything defined in the query.
Will produce something like this:
The problem is that the binding is cloned as well and PDO allows a binding to be used only once.
Following error will be thrown
SQLSTATE[HY093]: Invalid parameter number: parameter was not defined
.The reason for that is probably the clone here. Not sure if this should simply be a new query instance or if there is actually some stuff that needs be cloned.
Kirby Version
3.3.5
The text was updated successfully, but these errors were encountered: