mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 21:58:10 +02:00
MySqliDriver::createException() removed undefined ConnectionException [Closes #194]
This commit is contained in:
@@ -172,9 +172,6 @@ class MySqliDriver implements Dibi\Driver, Dibi\ResultDriver
|
||||
} elseif (in_array($code, [1062, 1557, 1569, 1586], TRUE)) {
|
||||
return new Dibi\UniqueConstraintViolationException($message, $code, $sql);
|
||||
|
||||
} elseif ($code >= 2001 && $code <= 2028) {
|
||||
return new Dibi\ConnectionException($message, $code, $sql);
|
||||
|
||||
} elseif (in_array($code, [1048, 1121, 1138, 1171, 1252, 1263, 1566], TRUE)) {
|
||||
return new Dibi\NotNullConstraintViolationException($message, $code, $sql);
|
||||
|
||||
|
Reference in New Issue
Block a user