Skip to content

Commit

Permalink
Merge branch 'MDL-30137' of git://github.com/timhunt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Aparup Banerjee committed Nov 8, 2011
2 parents 5d788e3 + f484a62 commit d4bdd01
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mod/quiz/locallib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -671,7 +671,12 @@ function quiz_update_all_final_grades($quiz) {
WHERE WHERE
ABS(newgrades.newgrade - qg.grade) > 0.000005 OR ABS(newgrades.newgrade - qg.grade) > 0.000005 OR
(newgrades.newgrade IS NULL) <> (qg.grade IS NULL)", ((newgrades.newgrade IS NULL OR qg.grade IS NULL) AND NOT
(newgrades.newgrade IS NULL AND qg.grade IS NULL))",
// The mess on the previous line is detecting where the value is
// NULL in one column, and NOT NULL in the other, but SQL does
// not have an XOR operator, and MS SQL server can't cope with
// (newgrades.newgrade IS NULL) <> (qg.grade IS NULL).
$param); $param);


$timenow = time(); $timenow = time();
Expand Down

0 comments on commit d4bdd01

Please sign in to comment.