From: skodak Date: Wed, 3 Jun 2009 20:55:00 +0000 (+0000) Subject: MDL-17491 ora 10 min required, no need for legacy hacks anymore X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f9f8baa89e31414ed8cf93dfde9380f0f85765b6;p=moodle.git MDL-17491 ora 10 min required, no need for legacy hacks anymore --- 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)) {