Permalink
Browse files

MDL-31914 db fix - cannot use table aliases on DELETE statements. Cre…

…dit goes to Andrew Nicols (LUNS).
  • Loading branch information...
1 parent b5dd455 commit 352476d1317641744a7d4febff83f140feadca68 @stronk7 stronk7 committed Apr 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/db/upgrade.php
View
@@ -7042,7 +7042,7 @@ function xmldb_main_upgrade($oldversion) {
WHERE NOT EXISTS (
SELECT 'x' FROM {course_modules}
WHERE {course_modules}.id = {course_completion_criteria}.moduleinstance)
- AND cc.criteriatype = ".COMPLETION_CRITERIA_TYPE_ACTIVITY;
+ AND {course_completion_criteria}.criteriatype = ".COMPLETION_CRITERIA_TYPE_ACTIVITY;
}
$DB->execute($sql);

0 comments on commit 352476d

Please sign in to comment.