These functions can be gathered using the following query from a Postgres 15 instance: SELECT * FROM pg_operator o WHERE o.oprname = '&' ORDER BY o.oprcode::varchar; initBinaryBitAnd registers the functions to the catalog.
()
| 26 | |
| 27 | // initBinaryBitAnd registers the functions to the catalog. |
| 28 | func initBinaryBitAnd() { |
| 29 | framework.RegisterBinaryFunction(framework.Operator_BinaryBitAnd, int2and) |
| 30 | framework.RegisterBinaryFunction(framework.Operator_BinaryBitAnd, int4and) |
| 31 | framework.RegisterBinaryFunction(framework.Operator_BinaryBitAnd, int8and) |
| 32 | } |
| 33 | |
| 34 | // int2and_callable is the callable logic for the int2and function. |
| 35 | func int2and_callable(ctx *sql.Context, _ [3]*pgtypes.DoltgresType, val1 any, val2 any) (any, error) { |
no test coverage detected