You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the report coursesize plugin relies on the moodle cron job to do the calculation of course file sizes. During execution of the moodle cron job an update statement is executed that is derived from the following sql template found in the file moodle\report\coursesize\classes\task\report_async.php:
$sql = "UPDATE {report_coursesize} rc
SET backupsize = (SELECT bf.filesize FROM ($basesql) bf WHERE bf.course = rc.course)";
SQL Server cannot execute this statement because an alias on the update table (here: "rc") is not allowed in this dialect and hence course size cannot persisted in the database. As a quick fix I implemented the following solution which works on SQL Server. However I did not test whether this works with the other db providers.
$sql = "UPDATE {report_coursesize}
SET backupsize = (SELECT bf.filesize FROM ($basesql) bf WHERE bf.course = {report_coursesize}.course)";
Ladies and Gents,
the report coursesize plugin relies on the moodle cron job to do the calculation of course file sizes. During execution of the moodle cron job an update statement is executed that is derived from the following sql template found in the file moodle\report\coursesize\classes\task\report_async.php:
SQL Server cannot execute this statement because an alias on the update table (here: "rc") is not allowed in this dialect and hence course size cannot persisted in the database. As a quick fix I implemented the following solution which works on SQL Server. However I did not test whether this works with the other db providers.
I'm using Release 4.2
Best regards
Matthias
The text was updated successfully, but these errors were encountered: