Permalink
Browse files

MDL-32442 questionupgrade: error in SQL from postgres systems

  • Loading branch information...
1 parent b1d3043 commit a68b0363bfb6f594e1f2f4d92541d3753cb7807d @merrill-oakland merrill-oakland committed Apr 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/tool/qeupgradehelper/locallib.php
@@ -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);
}

0 comments on commit a68b036

Please sign in to comment.