Skip to content

Commit

Permalink
Merge pull request #4362 from toby-griffiths/add-missing-exception-an…
Browse files Browse the repository at this point in the history
…notation

Adds exception thrown by execute() method
  • Loading branch information
greg0ire authored Oct 21, 2020
2 parents 9350d2a + de9ce76 commit 38989c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Doctrine/DBAL/Query/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Driver\ResultStatement;
use Doctrine\DBAL\Exception;
use Doctrine\DBAL\ParameterType;
use Doctrine\DBAL\Query\Expression\CompositeExpression;
use Doctrine\DBAL\Query\Expression\ExpressionBuilder;
Expand Down Expand Up @@ -200,6 +201,8 @@ public function getState()
* Executes this query using the bound parameters and their types.
*
* @return ResultStatement|int
*
* @throws Exception
*/
public function execute()
{
Expand Down

0 comments on commit 38989c2

Please sign in to comment.