From f5ae7c498e3ebe53ea416c1645ab5ec617e278f4 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 16 Apr 2007 14:43:57 +0000 Subject: [PATCH] Fixed quesry to work agains Oracle. Repeated fields + limit are incompatible (and not needed) for Oracle. MDL-9321 Merged from MOODLE_18_STABLE --- mod/assignment/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index 6449375b089..01a8440ced1 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -805,7 +805,7 @@ class assignment_base { '', '', '', '', false); } - $select = 'SELECT u.id, u.id, u.firstname, u.lastname, u.picture, + $select = 'SELECT u.id, u.firstname, u.lastname, u.picture, s.id AS submissionid, s.grade, s.submissioncomment, s.timemodified, s.timemarked '; $sql = 'FROM '.$CFG->prefix.'user u '. @@ -1096,7 +1096,7 @@ class assignment_base { $sort = ' ORDER BY '.$sort; } - $select = 'SELECT u.id, u.id, u.firstname, u.lastname, u.picture, + $select = 'SELECT u.id, u.firstname, u.lastname, u.picture, s.id AS submissionid, s.grade, s.submissioncomment, s.timemodified, s.timemarked '; $sql = 'FROM '.$CFG->prefix.'user u '.