MDL-33788 completion: SQL optimisation

This commit is contained in:
Aaron Barnes
2012-07-09 15:39:20 +12:00
parent 305fbe760a
commit c4c0b5a4e9
+3 -2
View File
@@ -382,10 +382,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));
}
/**