Commit b03d65e9 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge branch 'DBAL-134' into 2.0.x

parents 482ac5c5 e79ef365
...@@ -620,7 +620,20 @@ class Connection implements DriverConnection ...@@ -620,7 +620,20 @@ class Connection implements DriverConnection
{ {
$this->connect(); $this->connect();
return call_user_func_array(array($this->_conn, 'query'), func_get_args()); $args = func_get_args();
$logger = $this->getConfiguration()->getSQLLogger();
if ($logger) {
$logger->startQuery($args[0]);
}
$statement = call_user_func_array(array($this->_conn, 'query'), $args);
if ($logger) {
$logger->stopQuery();
}
return $statement;
} }
/** /**
......
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