MDL-32442 questionupgrade: error in SQL from postgres systems
authorEric Merrill <merrill@oakland.edu>
Sat, 14 Apr 2012 13:05:12 +0000 (09:05 -0400)
committerEric Merrill <merrill@oakland.edu>
Sat, 14 Apr 2012 13:05:12 +0000 (09:05 -0400)
admin/tool/qeupgradehelper/locallib.php

index 62cfca6..eda56a8 100644 (file)
@@ -669,5 +669,5 @@ function tool_qeupgradehelper_get_quiz_for_upgrade() {
             JOIN {course} c ON c.id = quiz.course
             WHERE quiza.preview = 0 AND quiza.needsupgradetonewqe = 1
             GROUP BY quiz.id, quiz.name, c.shortname, c.id
-            ORDER BY quiza.timemodified DESC", array(), IGNORE_MULTIPLE);
+            ORDER BY MAX(quiza.timemodified) DESC", array(), IGNORE_MULTIPLE);
 }