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:
stronk7
2006-09-04 22:05:58 +00:00
parent 8f5c4adbd7
commit 94ef00f3bb
+1 -1
View File
@@ -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 ");
}