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

Function interval_pl_timestamp_callable

server/functions/binary/plus.go:350–352  ·  view source on GitHub ↗

interval_pl_timestamp_callable is the callable logic for the interval_pl_timestamp function.

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

Source from the content-addressed store, hash-verified

348
349// interval_pl_timestamp_callable is the callable logic for the interval_pl_timestamp function.
350func interval_pl_timestamp_callable(ctx *sql.Context, _ [3]*pgtypes.DoltgresType, val1 any, val2 any) (any, error) {
351 return intervalPlusNonInterval(val1.(duration.Duration), val2.(time.Time))
352}
353
354// interval_pl_timestamp represents the PostgreSQL function of the same name, taking the same parameters.
355var interval_pl_timestamp = framework.Function2{

Callers

nothing calls this directly

Calls 1

intervalPlusNonIntervalFunction · 0.85

Tested by

no test coverage detected