Permalink
Browse files

MDL-37301 fix missing AS in select

This was breaking pg 8.3. Credit goes to Thomas Robb, thanks.
  • Loading branch information...
1 parent 322af44 commit c0333c98ea17936d86e57f4af3c28d071b88d19e @skodak skodak committed Dec 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/filebrowser/file_info_context_coursecat.php
@@ -204,7 +204,7 @@ public function count_non_empty_children($extensions = '*', $limit = 1) {
return $cnt;
}
- $rs = $DB->get_recordset_sql('SELECT ctx.id contextid, c.visible
+ $rs = $DB->get_recordset_sql('SELECT ctx.id AS contextid, c.visible
FROM {context} ctx, {course} c
WHERE ctx.instanceid = c.id
AND ctx.contextlevel = :courselevel
@@ -226,7 +226,7 @@ public function count_non_empty_children($extensions = '*', $limit = 1) {
return $cnt;
}
- $rs = $DB->get_recordset_sql('SELECT ctx.id contextid, cat.visible
+ $rs = $DB->get_recordset_sql('SELECT ctx.id AS contextid, cat.visible
FROM {context} ctx, {course_categories} cat
WHERE ctx.instanceid = cat.id
AND ctx.contextlevel = :catlevel

0 comments on commit c0333c9

Please sign in to comment.