Skip to content

Commit

Permalink
Fix GROUP BY clauses for limited DBs
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Nov 10, 2023
1 parent 74f0ebb commit ce572dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public static function get_categories_with_sharable_question_choices(\context $c
WHERE qc.contextid = ?
AND qc.idnumber IS NOT NULL
GROUP BY qc.id, qc.name
GROUP BY qc.id, qc.name, qc.idnumber
HAVING COUNT(q.id) > 0
ORDER BY qc.name
", $params);
Expand All @@ -280,7 +280,7 @@ public static function get_categories_with_sharable_question_choices(\context $c
WHERE qc.contextid = ?
AND qc.idnumber IS NOT NULL
GROUP BY qc.id, qc.name
GROUP BY qc.id, qc.name, qc.idnumber
HAVING COUNT(q.id) > 0
ORDER BY qc.name
", $params);
Expand Down

0 comments on commit ce572dc

Please sign in to comment.