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

Method Next

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

Next implements the Datum interface.

(_ *EvalContext)

Source from the content-addressed store, hash-verified

814
815// Next implements the Datum interface.
816func (d *DFloat) Next(_ *EvalContext) (Datum, bool) {
817 f := float64(*d)
818 if math.IsNaN(f) {
819 return dNegInfFloat, true
820 }
821 if f == math.Inf(+1) {
822 return nil, false
823 }
824 return NewDFloat(DFloat(math.Nextafter(f, math.Inf(+1)))), true
825}
826
827var dZeroFloat = NewDFloat(0.0)
828var dPosInfFloat = NewDFloat(DFloat(math.Inf(+1)))

Callers

nothing calls this directly

Calls 2

NewDFloatFunction · 0.85
DFloatTypeAlias · 0.85

Tested by

no test coverage detected