Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
Fix missing parameters in profiler output.
Browse files Browse the repository at this point in the history
Passing ParameterContainer straight to logger causes losing some parameters.
ParameterContainer stops iterating once it reaches parameter with "false" value.
Calling `getNamedArray()` is tested way to fix it.
See https://github.com/zendframework/zf2/blob/release-2.3.1/library/Zend/Db/Adapter/Driver/Pdo/Statement.php#L269
  • Loading branch information
S3RK committed May 19, 2014
1 parent b08b65a commit 2c328a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BjyProfiler/Db/Profiler/Profiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function getQueryProfiles($queryTypes = null)
public function profilerStart($target)
{
$sql = $target->getSql();
$params = $target->getParameterContainer();
$params = $target->getParameterContainer()->getNamedArray();
$this->startQuery($sql, $params);
}

Expand Down

0 comments on commit 2c328a4

Please sign in to comment.