Skip to content

Commit

Permalink
Postgres fix in quiz (added AS)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjollnir_ committed Mar 8, 2005
1 parent 3cc821f commit 930c08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/questiontypes/calculated/questiontype.php
Expand Up @@ -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");
Expand Down

0 comments on commit 930c08c

Please sign in to comment.