Skip to content

Commit

Permalink
Document QueryException
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Jan 24, 2020
1 parent 3264682 commit a02701c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
3. The `addSelect()` method can be no longer called without arguments.
4. The `insert()`, `update()` and `delete()` methods now require the `$table` parameter, and do not support aliases anymore.
5. The `add()`, `getQueryPart()`, `getQueryParts()`, `resetQueryPart()` and `resetQueryParts()` methods are removed.
6. The `getSQL()` method now throws an expression if no `SELECT` expressions have been provided.

## BC BREAK: `OCI8Statement::convertPositionalToNamedPlaceholders()` is removed.

Expand Down
2 changes: 2 additions & 0 deletions lib/Doctrine/DBAL/Query/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ public function execute()
* </code>
*
* @return string The SQL query string.
*
* @throws QueryException If the SELECT query is empty.
*/
public function getSQL() : string
{
Expand Down

0 comments on commit a02701c

Please sign in to comment.