From 418b74993de9a3b99d1efee9ff34d028ec93f93b Mon Sep 17 00:00:00 2001
From: skodak <skodak>
Date: Tue, 9 Dec 2008 09:03:37 +0000
Subject: [PATCH] MDL-17491 oracle dml: problem notes

---
 lib/dml/oci_native_moodle_database.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/dml/oci_native_moodle_database.php b/lib/dml/oci_native_moodle_database.php
index f9284ccd9a..8c0538ce30 100644
--- a/lib/dml/oci_native_moodle_database.php
+++ b/lib/dml/oci_native_moodle_database.php
@@ -1118,11 +1118,13 @@ class oci_native_moodle_database extends moodle_database {
     }
 
     public function sql_bitor($int1, $int2) {
+        // TODO: this can not work because the number of params does not match
         return '((' . $int1 . ') + (' . $int2 . ') - ' . $this->sql_bitand($int1, $int2) . ')';
     }
 
     public function sql_bitxor($int1, $int2) {
-        return '((' . $int1 . ') # (' . $int2 . '))';
+        // TODO: this can not work because the number of params does not match
+        return '(' . sql_bitor($int1, $int2) . ' - ' . $this->sql_bitand($int1, $int2) . ')';
     }
 
     /**
-- 
2.39.5