MCPcopy Create free account
hub / github.com/dolthub/doltgresql / initBinaryBitAnd

Function initBinaryBitAnd

server/functions/binary/bit_and.go:28–32  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

26
27// initBinaryBitAnd registers the functions to the catalog.
28func 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.
35func int2and_callable(ctx *sql.Context, _ [3]*pgtypes.DoltgresType, val1 any, val2 any) (any, error) {

Callers 1

InitFunction · 0.85

Calls 1

RegisterBinaryFunctionFunction · 0.92

Tested by

no test coverage detected