From 992c0ec50db5e4f539a70bf6b116c154d07e8ea8 Mon Sep 17 00:00:00 2001 From: Tim Lock Date: Tue, 11 Jun 2013 08:54:01 +0930 Subject: [PATCH] MDL-40120: Fix get_course_records() which breaks in PSQL --- lib/coursecatlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/coursecatlib.php b/lib/coursecatlib.php index 6cf2ea1d3f3..2a5e06d501f 100644 --- a/lib/coursecatlib.php +++ b/lib/coursecatlib.php @@ -833,7 +833,7 @@ class coursecat implements renderable, cacheable_object, IteratorAggregate { $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