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

Method IsMin

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

IsMin implements the Datum interface.

(_ *EvalContext)

Source from the content-addressed store, hash-verified

2303
2304// IsMin implements the Datum interface.
2305func (d *DTimestamp) IsMin(_ *EvalContext) bool {
2306 // Subtracting 1 underflows to a larger value.
2307 tPrev := d.Time.Add(-time.Microsecond)
2308 return d.Before(tPrev)
2309}
2310
2311// Min implements the Datum interface.
2312func (d *DTimestamp) Min(_ *EvalContext) (Datum, bool) {

Callers

nothing calls this directly

Calls 2

BeforeMethod · 0.80
AddMethod · 0.65

Tested by

no test coverage detected