Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-30137_21' of git:// into M…

  • Loading branch information...
commit a49a4aecb2c829960af390d0446c68a9d88fc7db 2 parents 42d96d7 + 0bf39d0
@nebgor nebgor authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 mod/quiz/locallib.php
7 mod/quiz/locallib.php
@@ -693,7 +693,12 @@ function quiz_update_all_final_grades($quiz) {
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).
$timenow = time();
Please sign in to comment.
Something went wrong with that request. Please try again.