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 04cc6a1 commit b38f5518206c3dd6d531408cb27d6831b3272b62 @stronk7 stronk7 committed Apr 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/db/upgrade.php
View
2 lib/db/upgrade.php
@@ -6774,7 +6774,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 b38f551

Please sign in to comment.