Permalink
Browse files

(Fixes issue 1344)

  • Loading branch information...
1 parent a004297 commit 5b59e26d24b965f7175a897c39079b66b1684722 qiang.xue committed Jun 28, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 framework/db/CDbCommand.php
@@ -340,9 +340,10 @@ private function queryInternal($method,$mode,$params=array())
{
if($this->_connection->enableParamLogging && ($pars=array_merge($this->_params,$params))!==array())
{
+ $p=array();
foreach($pars as $name=>$value)
- $pars[$name]=$name.'='.$value;
- $par='. Bind with parameter ' .implode(', ',$pars);
+ $p[$name]=$name.'='.$value;
+ $par='. Bind with parameter ' .implode(', ',$p);
}
else
$par='';

0 comments on commit 5b59e26

Please sign in to comment.