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
43f92753
Commit
43f92753
authored
Sep 22, 2015
by
Tobias Schultze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more error codes for sql anywhere lock detection
parent
c880b19e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
AbstractSQLAnywhereDriver.php
lib/Doctrine/DBAL/Driver/AbstractSQLAnywhereDriver.php
+6
-0
AbstractSQLAnywhereDriverTest.php
...trine/Tests/DBAL/Driver/AbstractSQLAnywhereDriverTest.php
+7
-0
No files found.
lib/Doctrine/DBAL/Driver/AbstractSQLAnywhereDriver.php
View file @
43f92753
...
...
@@ -47,7 +47,13 @@ abstract class AbstractSQLAnywhereDriver implements Driver, ExceptionConverterDr
{
switch
(
$exception
->
getErrorCode
())
{
case
'-306'
:
case
'-307'
:
case
'-684'
:
return
new
Exception\DeadlockException
(
$message
,
$exception
);
case
'-210'
:
case
'-1175'
:
case
'-1281'
:
return
new
Exception\LockWaitTimeoutException
(
$message
,
$exception
);
case
'-100'
:
case
'-103'
:
case
'-832'
:
...
...
tests/Doctrine/Tests/DBAL/Driver/AbstractSQLAnywhereDriverTest.php
View file @
43f92753
...
...
@@ -95,6 +95,13 @@ class AbstractSQLAnywhereDriverTest extends AbstractDriverTest
),
self
::
EXCEPTION_DEADLOCK
=>
array
(
array
(
'-306'
,
null
,
null
),
array
(
'-307'
,
null
,
null
),
array
(
'-684'
,
null
,
null
),
),
self
::
EXCEPTION_LOCK_WAIT_TIMEOUT
=>
array
(
array
(
'-210'
,
null
,
null
),
array
(
'-1175'
,
null
,
null
),
array
(
'-1281'
,
null
,
null
),
),
);
}
...
...
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