mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-53451 competency: Fixing database errors on Oracle
- Random ordering caused by absence of ORDER BY clause - Invalid query statemennt due to wrong string concatenation - Cannot GROUP BY with CLOB columns
This commit is contained in:
parent
eb91deaa85
commit
0abaf33e00
5 changed files with 38 additions and 30 deletions
|
@ -122,7 +122,8 @@ class user_evidence_competency extends persistent {
|
|||
JOIN {" . user_evidence::TABLE . "} ue
|
||||
ON uec.userevidenceid = ue.id
|
||||
AND uc.userid = ue.userid
|
||||
AND ue.id = ?";
|
||||
AND ue.id = ?
|
||||
ORDER BY uc.id ASC";
|
||||
|
||||
$usercompetencies = array();
|
||||
$records = $DB->get_recordset_sql($sql, array($userevidenceid));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue