juliocamarero/liferay-portal — pull request #197 by migue (2011-11-28 11:51:29+00:00)
Title: LPS-21450 Cannot define permissions when using DB2 9.7, Oracle, and Sybase

Bitwise "&" operator is not defined as a function in some databases like Oracle or Sybase (in Oracle you should use BITAND function, which not exists in MySQL).

When using binary numbers we can use the formula shown in code in order to simulate the "&" bitwise operation