MDL-33788 completion: SQL optimisation

This commit is contained in:
Aaron Barnes
2012-07-09 15:36:52 +12:00
parent f2867a8672
commit 48bdd52172
+3 -2
View File
@@ -377,10 +377,11 @@ function completion_cron_completions() {
SET
reaggregate = 0
WHERE
reaggregate < {$timestarted}
reaggregate < :timestarted
AND reaggregate > 0
";
$DB->execute($sql);
$DB->execute($sql, array('timestarted' => $timestarted));
}
/**