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

Method Next

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

Next implements the Datum interface.

(_ *EvalContext)

Source from the content-addressed store, hash-verified

3389
3390// Next implements the Datum interface.
3391func (d *DArray) Next(_ *EvalContext) (Datum, bool) {
3392 a := DArray{ParamTyp: d.ParamTyp, Array: make(Datums, d.Len()+1)}
3393 copy(a.Array, d.Array)
3394 a.Array[len(a.Array)-1] = DNull
3395 return &a, true
3396}
3397
3398// Max implements the Datum interface.
3399func (d *DArray) Max(_ *EvalContext) (Datum, bool) {

Callers

nothing calls this directly

Calls 1

LenMethod · 0.95

Tested by

no test coverage detected