Skip to content

Commit a00a004

Browse files
authored
Merge pull request #2805 from drgrice1/fix-only-full-group-by-errors
Fix issues when the sql_mode includes the only_full_group_by setting.
2 parents 0a708ee + a00d70a commit a00a004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WeBWorK/Utils/ListingDB.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ sub getDBListings ($c, $amcounter = 0) {
286286
if ($amcounter) {
287287
$selectwhat = "COUNT(DISTINCT $selectwhat)";
288288
} else {
289-
$selectwhat .= 'as filepath, pgf.morelt_id, pgf.pgfile_id, pgf.static, pgf.MO';
289+
$selectwhat .= 'as filepath, MAX(pgf.morelt_id), MAX(pgf.pgfile_id), MAX(pgf.static), MAX(pgf.MO)';
290290
$group_by = 'GROUP BY filepath';
291291
}
292292

0 commit comments

Comments
 (0)