Use parentheses for bit* to be on the safe side
Follow-up to r51815.
This commit is contained in:
parent
fa01a1eae4
commit
2f42924f36
1 changed files with 3 additions and 3 deletions
|
|
@ -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)";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue