MDL-15973 - Errors from manual grading report on Postgres. Actually, this was already fixed in HEAD, so I am just backporting an already-working fix.

This commit is contained in:
tjhunt
2008-08-12 07:27:50 +00:00
parent b0d5723c11
commit 9e724aa8ed
+1 -1
View File
@@ -57,7 +57,7 @@ function quiz_get_average_grade_for_questions($quiz, $userids){
function quiz_get_total_qas_graded_and_ungraded($quiz, $questionids, $userids){
global $CFG;
$sql = "SELECT qs.question, COUNT(1) AS totalattempts, " .
"SUM(qs.event IN (".QUESTION_EVENTS_GRADED.")) AS gradedattempts " .
"SUM(CASE WHEN (qs.event IN (".QUESTION_EVENTS_GRADED.")) THEN 1 ELSE 0 END) AS gradedattempts " .
"FROM " .
"{$CFG->prefix}quiz_attempts qa, " .
"{$CFG->prefix}question_sessions qns, " .