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

Method Prev

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

Prev implements the Datum interface.

(ctx *EvalContext)

Source from the content-addressed store, hash-verified

2071
2072// Prev implements the Datum interface.
2073func (d *DTimeTZ) Prev(ctx *EvalContext) (Datum, bool) {
2074 if d.IsMin(ctx) {
2075 return nil, false
2076 }
2077 return NewDTimeTZFromOffset(d.TimeOfDay-1, d.OffsetSecs), true
2078}
2079
2080// Next implements the Datum interface.
2081func (d *DTimeTZ) Next(ctx *EvalContext) (Datum, bool) {

Callers

nothing calls this directly

Calls 2

IsMinMethod · 0.95
NewDTimeTZFromOffsetFunction · 0.85

Tested by

no test coverage detected