Commit fa8b6d06 authored by Darien Hager's avatar Darien Hager

Fix a bug where a failed transaction would cause bad profiling data, showing an open-ended query.

parent 3b901cd3
...@@ -164,6 +164,9 @@ class Statement implements \IteratorAggregate, DriverStatement ...@@ -164,6 +164,9 @@ class Statement implements \IteratorAggregate, DriverStatement
try { try {
$stmt = $this->stmt->execute($params); $stmt = $this->stmt->execute($params);
} catch (\Exception $ex) { } catch (\Exception $ex) {
if ($logger) {
$logger->stopQuery();
}
throw DBALException::driverExceptionDuringQuery( throw DBALException::driverExceptionDuringQuery(
$this->conn->getDriver(), $this->conn->getDriver(),
$ex, $ex,
......
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