From 7352cd1caa90606e06d1849efcb0e556090d84c9 Mon Sep 17 00:00:00 2001 From: patrickslee Date: Tue, 6 Dec 2005 21:13:20 +0000 Subject: [PATCH] Fixed an SQL query compatibility issue in quiz module Merged form MOODLE_15_STABLE --- mod/quiz/questiontypes/calculated/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/questiontypes/calculated/questiontype.php b/mod/quiz/questiontypes/calculated/questiontype.php index f8eb08b99e7..ad461a1964a 100644 --- a/mod/quiz/questiontypes/calculated/questiontype.php +++ b/mod/quiz/questiontypes/calculated/questiontype.php @@ -57,7 +57,7 @@ class quiz_calculated_qtype extends quiz_dataset_dependent_questiontype { global $CFG; if (!$oldanswers = get_records_sql( "SELECT a.*, c.tolerance, c.tolerancetype, - c.correctanswerlength, c.id calcid + c.correctanswerlength, c.id AS calcid FROM {$CFG->prefix}quiz_answers a, {$CFG->prefix}quiz_calculated c WHERE c.question = $question->id AND a.id = c.answer")) {