Skip to content

Commit

Permalink
Fixed logging regression on Statements. Parameters bound via bindValu…
Browse files Browse the repository at this point in the history
…e were lost.
  • Loading branch information
romanb committed Aug 7, 2010
1 parent ea00851 commit a47bf85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Statement.php
Expand Up @@ -123,7 +123,6 @@ public function bindParam($name, &$var, $type = PDO::PARAM_STR)
*/
public function execute($params = null)
{
$this->_params = array();
$hasLogger = $this->_conn->getConfiguration()->getSQLLogger();
if ($hasLogger) {
$queryStart = microtime(true);
Expand All @@ -134,6 +133,7 @@ public function execute($params = null)
if ($hasLogger) {
$this->_conn->getConfiguration()->getSQLLogger()->logSQL($this->_sql, $this->_params, microtime(true) - $queryStart);
}
$this->_params = array();
return $stmt;
}

Expand Down

0 comments on commit a47bf85

Please sign in to comment.