Skip to content

Commit

Permalink
MDL-71696 question: Fix Oracle GROUP BY error - Round 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona authored and ilyatregubov committed Feb 4, 2022
1 parent 3e071a5 commit 9cc81bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report/questioninstances/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
$ctxgroupby = implode(',', array_keys(context_helper::get_preload_record_columns('con')));
$counts = $DB->get_records_sql("
SELECT result.contextid, SUM(numquestions) AS numquestions, SUM(numhidden) AS numhidden, $ctxpreload
FROM (SELECT data.contextid, COUNT(data.numquestions) AS numquestions,
FROM (SELECT data.contextid, data.versionid, COUNT(data.numquestions) AS numquestions,
(SELECT COUNT(qv.id)
FROM {question_versions} qv
WHERE qv.id = data.versionid
Expand Down

0 comments on commit 9cc81bb

Please sign in to comment.