Permalink
Browse files

Fixes #1657: CDbCommandBuilder::createUpdateCounterCommand now can b…

…e used with float values
  • Loading branch information...
samdark committed Nov 14, 2012
1 parent 1cdaa63 commit 911b330289e9a416e2c1ec53c3f048af62dcbac1
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGELOG
  2. +1 −1 framework/db/schema/CDbCommandBuilder.php
View
@@ -74,6 +74,7 @@ Version 1.1.13 work in progress
- Enh #1567: Added filterSelector property to CGridView (MonkeyMaster)
- Enh #1581: Added an option 'unselectValue' to CHtml::dropDownList() and CHtml::activeDropDownList() to define default post value if option is not selected in multiple mode (creocoder)
- Enh #1596: Added CGridView::rowHtmlOptionsExpression to allow set HTML attributes for the row (Ryadnov)
+- Enh #1657: CDbCommandBuilder::createUpdateCounterCommand now can be used with float values (samdark, hyzhakus)
- Enh: Fixed the check for ajaxUpdate false value in jquery.yiilistview.js as that never happens (mdomba)
- Enh: Requirements checker: added check for Oracle database (pdo_oci extension) and MSSQL (pdo_dblib, pdo_sqlsrv and pdo_mssql extensions) (resurtm)
- Enh: Added CChainedLogFilter class to allow adding multiple filters to a logroute (cebe)
@@ -317,7 +317,7 @@ public function createUpdateCounterCommand($table,$counters,$criteria)
{
if(($column=$table->getColumn($name))!==null)
{
- $value=(int)$value;
+ $value=(float)$value;
if($value<0)
$fields[]="{$column->rawName}={$column->rawName}-".(-$value);
else

0 comments on commit 911b330

Please sign in to comment.