Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-25053 invalid SQL syntax

postgresql requires AS when defining column aliases, credit goes to Alan Peter Carter and Brett Wilkins
  • Loading branch information...
commit 15a18acddcfce4a0bc09a5359c04016a529d8c1c 1 parent 87bf65c
@skodak skodak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  course/report/participation/index.php
View
2  course/report/participation/index.php
@@ -186,7 +186,7 @@
FROM (SELECT * FROM {$CFG->prefix}role_assignments WHERE contextid $relatedcontexts AND roleid = $roleid ) ra
JOIN {$CFG->prefix}user u ON u.id = ra.userid
LEFT JOIN (
- SELECT userid, COUNT(action) actioncount FROM {$CFG->prefix}log WHERE cmid = $instanceid AND time > $timefrom AND $actionsql GROUP BY userid
+ SELECT userid, COUNT(action) AS actioncount FROM {$CFG->prefix}log WHERE cmid = $instanceid AND time > $timefrom AND $actionsql GROUP BY userid
) l ON (l.userid = ra.userid)";
Please sign in to comment.
Something went wrong with that request. Please try again.