Use parentheses for bit* to be on the safe side

Follow-up to r51815.
This commit is contained in:
Aryeh Gregor 2009-06-14 20:13:17 +00:00
parent fa01a1eae4
commit 2f42924f36

View file

@ -1445,15 +1445,15 @@ abstract class DatabaseBase {
*/
function bitNot($field) {
return '~'.$bitField;
return "(~$bitField)";
}
function bitAnd($fieldLeft, $fieldRight) {
return $fieldLeft.'&'.$fieldRight;
return "($fieldLeft & $fieldRight)";
}
function bitOr($fieldLeft, $fieldRight) {
return $fieldLeft.'|'.$fieldRight;
return "($fieldLeft | $fieldRight)";
}
/**