mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
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:
parent
3212d2f240
commit
f5ae7c498e
@ -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 '.
|
||||
|
Loading…
x
Reference in New Issue
Block a user