Commit 43f92753 authored by Tobias Schultze's avatar Tobias Schultze

add more error codes for sql anywhere lock detection

parent c880b19e
......@@ -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':
......
......@@ -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),
),
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment