Fixing Dbal logger to work with latest DBAL

This commit is contained in:
Jonathan H. Wage 2010-09-14 15:01:27 -05:00 committed by Fabien Potencier
parent 2fd9ffbaee
commit 115d073033

View File

@ -36,9 +36,9 @@ class DbalLogger extends DebugStack
/**
* {@inheritdoc}
*/
public function logSQL($sql, array $params = null, $executionMS = null)
public function startQuery($sql, array $params = null, array $types = null)
{
parent::logSql($sql, $params, $executionMS);
parent::startQuery($sql, $params, $types);
if (null !== $this->logger) {
$this->log($sql.' ('.str_replace("\n", '', var_export($params, true)).')');