Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -1445,15 +1445,15 @@ |
1446 | 1446 | */ |
1447 | 1447 | |
1448 | 1448 | function bitNot($field) { |
1449 | | - return '~'.$bitField; |
| 1449 | + return "(~$bitField)"; |
1450 | 1450 | } |
1451 | 1451 | |
1452 | 1452 | function bitAnd($fieldLeft, $fieldRight) { |
1453 | | - return $fieldLeft.'&'.$fieldRight; |
| 1453 | + return "($fieldLeft & $fieldRight)"; |
1454 | 1454 | } |
1455 | 1455 | |
1456 | 1456 | function bitOr($fieldLeft, $fieldRight) { |
1457 | | - return $fieldLeft.'|'.$fieldRight; |
| 1457 | + return "($fieldLeft | $fieldRight)"; |
1458 | 1458 | } |
1459 | 1459 | |
1460 | 1460 | /** |