Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-34372: Fix query in backup_cron_helper so it works on Postgres 8.3

Amended by stronk7@moodle.org to use uppercase SQL keywords.
  • Loading branch information...
commit c6d7689621d7f28e552d3fcb499557ec3e3ddaf6 1 parent bab6502
Nathan Mares authored stronk7 committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  backup/util/helper/backup_cron_helper.class.php
2  backup/util/helper/backup_cron_helper.class.php
@@ -255,7 +255,7 @@ public static function get_backup_status_array() {
255 255 self::BACKUP_STATUS_SKIPPED => 0,
256 256 );
257 257
258   - $statuses = $DB->get_records_sql('SELECT DISTINCT bc.laststatus, COUNT(bc.courseid) statuscount FROM {backup_courses} bc GROUP BY bc.laststatus');
  258 + $statuses = $DB->get_records_sql('SELECT DISTINCT bc.laststatus, COUNT(bc.courseid) AS statuscount FROM {backup_courses} bc GROUP BY bc.laststatus');
259 259
260 260 foreach ($statuses as $status) {
261 261 if (empty($status->statuscount)) {

0 comments on commit c6d7689

Please sign in to comment.
Something went wrong with that request. Please try again.