Permalink
Browse files

MDL-29815 question engine DB: bad group-by clause detected by Oracle.

Thanks to Yanfei Lu for finding this and suggesting the fix.
  • Loading branch information...
1 parent e04dba0 commit 0750c0e114f0bca157e0b4055e50e0ac55d033cc @timhunt timhunt committed Oct 18, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 question/engine/datalib.php
View
4 question/engine/datalib.php
@@ -367,7 +367,9 @@ public function load_questions_usages_question_state_summary(
qa.questionid,
q.name,
q.id,
- summarystate
+ CASE qas.state
+ {$this->full_states_to_summary_state_sql()}
+ END
ORDER BY
qa.slot,

0 comments on commit 0750c0e

Please sign in to comment.