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:
martinlanghoff 2007-12-04 06:25:25 +00:00
parent 0c07a1c458
commit 2ff0fb1205

View File

@ -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