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

Function interval_pl_date_callable

server/functions/binary/plus.go:319–321  ·  view source on GitHub ↗

interval_pl_date_callable is the callable logic for the interval_pl_date function.

(ctx *sql.Context, _ [3]*pgtypes.DoltgresType, val1 any, val2 any)

Source from the content-addressed store, hash-verified

317
318// interval_pl_date_callable is the callable logic for the interval_pl_date function.
319func interval_pl_date_callable(ctx *sql.Context, _ [3]*pgtypes.DoltgresType, val1 any, val2 any) (any, error) {
320 return intervalPlusNonInterval(val1.(duration.Duration), val2.(time.Time))
321}
322
323// interval_pl_date represents the PostgreSQL function of the same name, taking the same parameters.
324var interval_pl_date = framework.Function2{

Callers

nothing calls this directly

Calls 1

intervalPlusNonIntervalFunction · 0.85

Tested by

no test coverage detected