MDL-26338 fix mixed types in quiz reports SQL. This was breaking Oracle
This commit is contained in:
@@ -202,7 +202,7 @@ class quiz_overview_report extends quiz_default_report {
|
||||
if (!$nostudents || ($attemptsmode == QUIZ_REPORT_ATTEMPTS_ALL)) {
|
||||
|
||||
// Construct the SQL
|
||||
$fields = $DB->sql_concat('u.id', '\'#\'', 'COALESCE(qa.attempt, \'0\')').' AS uniqueid, ';
|
||||
$fields = $DB->sql_concat('u.id', '\'#\'', 'COALESCE(qa.attempt, 0)').' AS uniqueid, ';
|
||||
if ($qmsubselect) {
|
||||
$fields .=
|
||||
"(CASE " .
|
||||
|
||||
@@ -185,7 +185,7 @@ class quiz_responses_report extends quiz_default_report {
|
||||
$hasfeedback = quiz_has_feedback($quiz);
|
||||
|
||||
// Construct the SQL
|
||||
$fields = $DB->sql_concat('u.id', '\'#\'', 'COALESCE(qa.attempt, \'0\')').' AS concattedid, ';
|
||||
$fields = $DB->sql_concat('u.id', '\'#\'', 'COALESCE(qa.attempt, 0)').' AS concattedid, ';
|
||||
if ($qmsubselect) {
|
||||
$fields .=
|
||||
"(CASE " .
|
||||
|
||||
Reference in New Issue
Block a user