yiisoft/yii — pull request #2854 by vyachin (2013-09-10 23:06:03+00:00)
Title: fix lastmodifiedexpression

For example if table {{post}} empty :
public function filters()
{
return array(
array(
'CHttpCacheFilter + index',
'lastModified'=>Yii::app()->db->createCommand("SELECT MAX(`update_time`) FROM {{post}}")->queryScalar(),
'lastModifiedExpression'=>'Yii::app()->db->createCommand("SELECT MAX(`update_time`) FROM {{post}}")->queryScalar()',
),
);
}
if i use only lastModified is ok.
If i use lastModifiedExpression i catch exception