mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Bug when call stored procedure #5239
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PlamenVasilev on GitHub (Sep 2, 2016).
I have named query which calls stored procedure with one parameter.
I call the stored procedure with
the stored procedure is something like:
When i have row in the table the result is returned and everything is fine.
When there are now rows matched the stored procedure doesn't return anything and doctrine gives me
SQLSTATE[HY000]: General errorthe full backtrace is:
This result can be tested with this stored procedure:
Workaround:
To make this not show errors the stored procedure must do dummy selects in
elsestatmentFor example:
@Ocramius commented on GitHub (Sep 7, 2016):
@PlamenVasilev if I read this correctly, this is a
PDOExceptionbeing thrown by PDO itself, not by doctrine?If you can confirm that, then this has to be escalated to a PDO bug, in my opinion ( at http://bugs.php.net/ ), and marked as "can't fix" here.