MDL-39726 backup: fix SQL syntax for Oracle
This commit is contained in:
@@ -3697,7 +3697,7 @@ class restore_create_question_files extends restore_execution_step {
|
||||
// MUST use a recordset, as there is no unique key in the first (or any) column.
|
||||
$catqtypes = $DB->get_recordset_sql("SELECT DISTINCT bi.parentitemid AS categoryid, q.qtype as qtype
|
||||
FROM {backup_ids_temp} bi
|
||||
JOIN {question} AS q ON q.id = bi.newitemid
|
||||
JOIN {question} q ON q.id = bi.newitemid
|
||||
WHERE bi.backupid = ?
|
||||
AND bi.itemname = 'question_created'
|
||||
ORDER BY categoryid ASC", array($this->get_restoreid()));
|
||||
|
||||
Reference in New Issue
Block a user