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

Method Min

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

Min implements the Datum interface.

(ctx *EvalContext)

Source from the content-addressed store, hash-verified

3040
3041// Min implements the Datum interface.
3042func (d *DTuple) Min(ctx *EvalContext) (Datum, bool) {
3043 res := NewDTupleWithLen(d.typ, len(d.D))
3044 for i, v := range d.D {
3045 m, ok := v.Min(ctx)
3046 if !ok {
3047 return nil, false
3048 }
3049 res.D[i] = m
3050 }
3051 return res, true
3052}
3053
3054// IsMax implements the Datum interface.
3055func (d *DTuple) IsMax(ctx *EvalContext) bool {

Callers

nothing calls this directly

Calls 2

NewDTupleWithLenFunction · 0.85
MinMethod · 0.65

Tested by

no test coverage detected