mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
accesslib: build_context_path() remove $temptable for Oracle too
The removal of $temptable was incomplete - and so build_context_path() was broken on Oracle. MDL-11347
This commit is contained in:
parent
0c07a1c458
commit
2ff0fb1205
@ -4720,10 +4720,10 @@ function build_context_path($force=false, $feedback=false) {
|
||||
$updatesql = "UPDATE {$CFG->prefix}context ct
|
||||
SET (ct.path, ct.depth) =
|
||||
(SELECT temp.path, temp.depth
|
||||
FROM {$CFG->prefix}$temptable temp
|
||||
FROM {$CFG->prefix}context_temp temp
|
||||
WHERE temp.id=ct.id)
|
||||
WHERE EXISTS (SELECT 'x'
|
||||
FROM {$CFG->prefix}$temptable temp
|
||||
FROM {$CFG->prefix}context_temp temp
|
||||
WHERE temp.id = ct.id)";
|
||||
} else {
|
||||
$updatesql = "UPDATE {$CFG->prefix}context
|
||||
|
Loading…
x
Reference in New Issue
Block a user