]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17491 ora 10 min required, no need for legacy hacks anymore
authorskodak <skodak>
Wed, 3 Jun 2009 20:55:00 +0000 (20:55 +0000)
committerskodak <skodak>
Wed, 3 Jun 2009 20:55:00 +0000 (20:55 +0000)
lib/dml/oci_native_moodle_database.php

index daf49b9aee2817bd03f9ea7f56bea7df85f9dbd0..04a2aa630144a28a6fbd43894e9f001d4a4cd5d5 100644 (file)
@@ -864,16 +864,9 @@ class oci_native_moodle_database extends moodle_database {
             $returnid = false;
         } else {
             if ($returnid) {
-                if ($this->is_min_version('10.0')) {
-                    $returning = "RETURNING id INTO :oracle_id";// crazy name nobody is ever going to use or parameter ;-)
-                    unset($params['id']);
-                } else {
-                    //ugly workaround for oracle 9
-                    die('TODO - implement oracle 9.2 insert support'); //TODO
-                }
-            } else {
-                unset($params['id']);
+                $returning = "RETURNING id INTO :oracle_id";// crazy name nobody is ever going to use or parameter ;-)
             }
+            unset($params['id']);
         }
 
         if (empty($params)) {