$bitField to $field
authorSam Reed <reedy@users.mediawiki.org>
Wed, 18 Aug 2010 10:02:39 +0000 (10:02 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 18 Aug 2010 10:02:39 +0000 (10:02 +0000)
includes/db/Database.php
includes/db/DatabaseIbm_db2.php

index 250844b..ce676e8 100644 (file)
@@ -1278,7 +1278,7 @@ abstract class DatabaseBase {
         */
 
        function bitNot($field) {
-               return "(~$bitField)";
+               return "(~$field)";
        }
 
        function bitAnd($fieldLeft, $fieldRight) {
index f54c970..c91dc86 100644 (file)
@@ -1768,7 +1768,7 @@ SQL;
         */
        function bitNot($field) {
                //expecting bit-fields smaller than 4bytes
-               return 'BITNOT('.$bitField.')';
+               return 'BITNOT('.$field.')';
        }
 
        /**