mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-39726 backup: fix SQL syntax for Oracle
This commit is contained in:
parent
5528117324
commit
b9329e0cfe
1 changed files with 1 additions and 1 deletions
|
@ -3696,7 +3696,7 @@ class restore_create_question_files extends restore_execution_step {
|
||||||
// Parentitemids of question_createds in backup_ids_temp are the category it is in.
|
// Parentitemids of question_createds in backup_ids_temp are the category it is in.
|
||||||
// MUST use a recordset, as there is no unique key in the first (or any) column.
|
// 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
|
$catqtypes = $DB->get_recordset_sql("SELECT DISTINCT bi.parentitemid AS categoryid, q.qtype as qtype
|
||||||
FROM {backup_ids_temp} AS bi
|
FROM {backup_ids_temp} bi
|
||||||
JOIN {question} AS q ON q.id = bi.newitemid
|
JOIN {question} AS q ON q.id = bi.newitemid
|
||||||
WHERE bi.backupid = ?
|
WHERE bi.backupid = ?
|
||||||
AND bi.itemname = 'question_created'
|
AND bi.itemname = 'question_created'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue