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
Prepared query wrong number of parameter on 2.9.3 #47
Comments
The problem persists with zend-db 2.10.0. Originally posted by @guillomovitch at zendframework/zend-db#322 (comment) |
Problem seems to be named parameters, globally. This is still present with latest release. Another example:
In that example, trying to execute the statement with this array will fail:
But that will works with:
or
I really do not know if the problem is in |
Please create a pull request with an unit test which illustrates the problem. Thanks in advance! |
I can take a look, but as I've said, I do not know what is expected here. Should the query be like: |
OK, I've added a case to reproduce in integration tests. See #160 |
Maybe linked to zendframework/zend-db#35 |
closes laminas#47 add tests Signed-off-by: Johan Cwiklinski <johan@x-tnd.be>
Trying to execute a prepared query with named parameters. Works well with 2.9.2 but fails on 2.9.3.
Code to reproduce the issue
Something like:
Expected results
Query success.
Actual results
Fails with the following exception:
Array passed to
Statement::execute()
looks like:Thank you.
Originally posted by @trasher at zendframework/zend-db#322
The text was updated successfully, but these errors were encountered: