-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Execute method does not contain return statement in SQLSrvStatement #3213
Comments
Could you link the specific bit of code please? |
In class https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php method execute on line 249. The documentation section is: https://www.doctrine-project.org/api/dbal/2.7/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.html#method_execute |
Ref:
|
As part of #3154, I'm trying to change the return type of |
Nobody is relying only on return, of course try-catch blocks must be there. But, it was nice to know if it was executed or not with true/false as return. All other Statements still have it except SQLSrvStatement, so in these terms it should be taken as a BUG. In #3154 , is it guaranteed then when void was returned, the statement was executed successfully if no exception has been thrown ? If that is the case, then no other reason beside mismatch in documentation is problem. |
Currently, the fact that the method doesn't throw an exception is the indicator of success: dbal/lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php Lines 263 to 265 in d475ade
Yes, this is the goal. |
I believe this is irrelevant as of #4045. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Shouldn't there be a return statement in execute method, since documentation states that method returns boolen?
The text was updated successfully, but these errors were encountered: