laminas/laminas-db

db2_execute call fails if parameterContainer returns empty array

Closed this issue · 1 comments

https://github.com/zendframework/zend-db/blob/58271ef881bb310b0c029d1cfd17d8c35d4aa915/src/Adapter/Driver/IbmDb2/Statement.php#L236

db2_execute() will fail with error "db2_execute(): Param count incorrect" when an empty array is provided as the 2nd argument.

This makes calling DB2 stored procedures impossible, among other things.


Originally posted by @crimsonkissaki at zendframework/zend-db#328

This package is considered feature-complete, and is now in security-only maintenance mode, following a decision by the Technical Steering Committee.
If you have a security issue, please follow our security reporting guidelines.
If you wish to take on the role of maintainer, please nominate yourself

If you are looking for an actively maintained package alternative, we recommend: