Commit 6a650987 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge branch 'DBAL-134'

parents 2cb22496 adcbbb59
...@@ -661,7 +661,20 @@ class Connection implements DriverConnection ...@@ -661,7 +661,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