Name
bit_or — Returns bitwise OR of two 32-bit integers.
Synopsis
bit_or
(
|
in n1 integer , |
in
n2
integer
) ; |
Description
The function returns bitwise OR of two given integers.
On 64-bit platforms, both arguments are intentionally truncated to 32 bits to maintain compatibility.
Return Types
Integer.
Examples
Example 24.24. Using bitwise-OR
select bit_or (18, 6); 22 select bit_or (-18, -6); -2