From b9329e0cfe57836752f81ddff6e970734e6fa57c Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Wed, 11 Jun 2014 12:14:16 +0800 Subject: [PATCH] MDL-39726 backup: fix SQL syntax for Oracle --- backup/moodle2/restore_stepslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/moodle2/restore_stepslib.php b/backup/moodle2/restore_stepslib.php index f86c3f98c66..a9fb12f4fa1 100644 --- a/backup/moodle2/restore_stepslib.php +++ b/backup/moodle2/restore_stepslib.php @@ -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. // 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} AS bi + FROM {backup_ids_temp} bi JOIN {question} AS q ON q.id = bi.newitemid WHERE bi.backupid = ? AND bi.itemname = 'question_created'