Skip to content
Browse files

Postgres fix in quiz (added AS)

  • Loading branch information...
1 parent 3cc821f commit 930c08c352c7832aa973d9f70478772510771737 mjollnir_ committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/questiontypes/calculated/questiontype.php
View
2 mod/quiz/questiontypes/calculated/questiontype.php
@@ -15,7 +15,7 @@ class quiz_calculated_qtype extends quiz_dataset_dependent_questiontype {
function get_answers($question) {
global $CFG;
return get_records_sql(
- "SELECT a.*, c.tolerance, c.tolerancetype, c.correctanswerlength, c.id calcid
+ "SELECT a.*, c.tolerance, c.tolerancetype, 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");

0 comments on commit 930c08c

Please sign in to comment.
Something went wrong with that request. Please try again.