Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
bc7558b5
Unverified
Commit
bc7558b5
authored
Jun 28, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A driver cannot throw a DBAL exception
parent
c197e485
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
UPGRADE.md
UPGRADE.md
+4
-0
Connection.php
src/Driver/Connection.php
+2
-3
No files found.
UPGRADE.md
View file @
bc7558b5
...
...
@@ -5,6 +5,8 @@
The following driver-level methods are allowed to throw a Driver
\E
xception:
-
`Connection::prepare()`
-
`Connection::query()`
-
`Connection::exec()`
-
`Connection::lastInsertId()`
-
`Connection::beginTransaction()`
-
`Connection::commit()`
...
...
@@ -15,6 +17,8 @@ The following driver-level methods are allowed to throw a Driver\Exception:
-
`Result::rowCount()`
-
`Result::columnCount()`
The driver-level implementations of
`Connection::query()`
and
`Connection::exec()`
may no longer throw a
`DBALException`
.
## The `ExceptionConverterDriver` interface is removed
All drivers must implement the
`convertException()`
method which is now part of the
`Driver`
interface.
...
...
src/Driver/Connection.php
View file @
bc7558b5
...
...
@@ -2,7 +2,6 @@
namespace
Doctrine\DBAL\Driver
;
use
Doctrine\DBAL\DBALException
;
use
Doctrine\DBAL\ParameterType
;
/**
...
...
@@ -23,7 +22,7 @@ interface Connection
/**
* Executes an SQL statement, returning a result set as a Statement object.
*
* @throws
DBAL
Exception
* @throws Exception
*/
public
function
query
(
string
$sql
)
:
Result
;
...
...
@@ -40,7 +39,7 @@ interface Connection
/**
* Executes an SQL statement and return the number of affected rows.
*
* @throws
DBAL
Exception
* @throws Exception
*/
public
function
exec
(
string
$statement
)
:
int
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment