MDL-37254 add missing AS keyword

This commit is contained in:
Petr Škoda 2012-12-22 14:11:22 +01:00
parent 0dc5a532ec
commit 171215d465

View file

@ -813,7 +813,7 @@ class file_info_area_backup_section extends file_info {
'component' => 'backup',
'filearea' => 'section',
'emptyfilename' => '.');
$sql1 = "SELECT DISTINCT cs.id sectionid FROM {files} f, {course_sections} cs
$sql1 = "SELECT DISTINCT cs.id AS sectionid FROM {files} f, {course_sections} cs
WHERE cs.course = :courseid
AND f.contextid = :contextid
AND f.component = :component