MSSQL and Oracle don't want DISTINCT clauses over TEXT/BINARY fields.
In this case, we simply delete it because SELECT g.* guarantees unique records to be retrieved by the first field.
This commit is contained in:
+1
-1
@@ -687,7 +687,7 @@ function get_groups($courseid, $userid=0) {
|
||||
$userselect = '';
|
||||
}
|
||||
|
||||
return get_records_sql("SELECT DISTINCT g.*
|
||||
return get_records_sql("SELECT g.*
|
||||
FROM {$CFG->prefix}groups g $dbselect
|
||||
WHERE g.courseid = '$courseid' $userselect ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user