Permalink
Browse files

MDL-40120: Fix get_course_records() which breaks in PSQL

  • Loading branch information...
1 parent aca67ae commit 992c0ec50db5e4f539a70bf6b116c154d07e8ea8 @tlock tlock committed with Sam Hemelryk Jun 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/coursecatlib.php
@@ -833,7 +833,7 @@ protected static function get_course_records($whereclause, $params, $options, $c
$fields[] = 'c.summary';
$fields[] = 'c.summaryformat';
} else {
- $fields[] = $DB->sql_substr('c.summary', 1, 1). ' hassummary';
+ $fields[] = $DB->sql_substr('c.summary', 1, 1). ' as hassummary';
}
$sql = "SELECT ". join(',', $fields). ", $ctxselect
FROM {course} c

0 comments on commit 992c0ec

Please sign in to comment.