From f9f8baa89e31414ed8cf93dfde9380f0f85765b6 Mon Sep 17 00:00:00 2001
From: skodak <skodak>
Date: Wed, 3 Jun 2009 20:55:00 +0000
Subject: [PATCH] MDL-17491 ora 10 min required, no need for legacy hacks
 anymore

---
 lib/dml/oci_native_moodle_database.php | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/lib/dml/oci_native_moodle_database.php b/lib/dml/oci_native_moodle_database.php
index daf49b9aee..04a2aa6301 100644
--- a/lib/dml/oci_native_moodle_database.php
+++ b/lib/dml/oci_native_moodle_database.php
@@ -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)) {
-- 
2.39.5