Skip to content

Commit

Permalink
dev: fixed mssql compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mennodekker committed Dec 13, 2012
1 parent ed695e7 commit 4d7977c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/models/Survey_dynamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public static function countAllAndPartial($sid)
$select = array(
'count(*) AS cntAll',
'sum(CASE
WHEN submitdate IS NULL THEN 1
WHEN '. Yii::app()->db->quoteColumnName('submitdate') . ' IS NULL THEN 1
ELSE 0
END) AS cntPartial',
);
Expand Down
4 changes: 2 additions & 2 deletions application/models/Tokens_dynamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ public static function countAllAndCompleted($sid)
{
$select = array(
'count(*) AS cntAll',
'sum(CASE completed
WHEN "Y" THEN 0
'sum(CASE '. Yii::app()->db->quoteColumnName('completed') . '
WHEN '.Yii::app()->db->quoteValue('Y').' THEN 0
ELSE 1
END) AS cntCompleted',
);
Expand Down

0 comments on commit 4d7977c

Please sign in to comment.