Commit 9800888d authored by Darien Hager's avatar Darien Hager Committed by Steve Müller

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

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