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

Method Next

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

Next implements the Datum interface.

(ctx *EvalContext)

Source from the content-addressed store, hash-verified

2079
2080// Next implements the Datum interface.
2081func (d *DTimeTZ) Next(ctx *EvalContext) (Datum, bool) {
2082 if d.IsMax(ctx) {
2083 return nil, false
2084 }
2085 return NewDTimeTZFromOffset(d.TimeOfDay+1, d.OffsetSecs), true
2086}
2087
2088// IsMax implements the Datum interface.
2089func (d *DTimeTZ) IsMax(_ *EvalContext) bool {

Callers

nothing calls this directly

Calls 2

IsMaxMethod · 0.95
NewDTimeTZFromOffsetFunction · 0.85

Tested by

no test coverage detected