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

Function initBinaryMod

server/functions/binary/mod.go:31–36  ·  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; initBinaryMod registers the functions to the catalog.

()

Source from the content-addressed store, hash-verified

29
30// initBinaryMod registers the functions to the catalog.
31func initBinaryMod() {
32 framework.RegisterBinaryFunction(framework.Operator_BinaryMod, int2mod)
33 framework.RegisterBinaryFunction(framework.Operator_BinaryMod, int4mod)
34 framework.RegisterBinaryFunction(framework.Operator_BinaryMod, int8mod)
35 framework.RegisterBinaryFunction(framework.Operator_BinaryMod, numeric_mod)
36}
37
38// int2mod represents the PostgreSQL function of the same name, taking the same parameters.
39var int2mod = framework.Function2{

Callers 1

InitFunction · 0.85

Calls 1

RegisterBinaryFunctionFunction · 0.92

Tested by

no test coverage detected