MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Max

Method Max

pkg/sql/sem/tree/datum.go:3029–3039  ·  view source on GitHub ↗

Max implements the Datum interface.

(ctx *EvalContext)

Source from the content-addressed store, hash-verified

3027
3028// Max implements the Datum interface.
3029func (d *DTuple) Max(ctx *EvalContext) (Datum, bool) {
3030 res := NewDTupleWithLen(d.typ, len(d.D))
3031 for i, v := range d.D {
3032 m, ok := v.Max(ctx)
3033 if !ok {
3034 return nil, false
3035 }
3036 res.D[i] = m
3037 }
3038 return res, true
3039}
3040
3041// Min implements the Datum interface.
3042func (d *DTuple) Min(ctx *EvalContext) (Datum, bool) {

Callers

nothing calls this directly

Calls 2

NewDTupleWithLenFunction · 0.85
MaxMethod · 0.65

Tested by

no test coverage detected