mirror of
https://github.com/dg/dibi.git
synced 2025-08-04 21:28:02 +02:00
Connection: begin, commit and rollback catches DriverException
This commit is contained in:
@@ -353,7 +353,7 @@ class Connection implements IConnection
|
|||||||
$this->onEvent($event->done());
|
$this->onEvent($event->done());
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (DriverException $e) {
|
||||||
if ($event) {
|
if ($event) {
|
||||||
$this->onEvent($event->done($e));
|
$this->onEvent($event->done($e));
|
||||||
}
|
}
|
||||||
@@ -377,7 +377,7 @@ class Connection implements IConnection
|
|||||||
$this->onEvent($event->done());
|
$this->onEvent($event->done());
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (DriverException $e) {
|
||||||
if ($event) {
|
if ($event) {
|
||||||
$this->onEvent($event->done($e));
|
$this->onEvent($event->done($e));
|
||||||
}
|
}
|
||||||
@@ -401,7 +401,7 @@ class Connection implements IConnection
|
|||||||
$this->onEvent($event->done());
|
$this->onEvent($event->done());
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (DriverException $e) {
|
||||||
if ($event) {
|
if ($event) {
|
||||||
$this->onEvent($event->done($e));
|
$this->onEvent($event->done($e));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user