Fixed quesry to work agains Oracle. Repeated fields + limit

are incompatible (and not needed) for Oracle. MDL-9321

Merged from MOODLE_18_STABLE
This commit is contained in:
stronk7 2007-04-16 14:43:57 +00:00
parent 3212d2f240
commit f5ae7c498e

View File

@ -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 '.