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

Method IsMax

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

IsMax implements the Datum interface.

(_ *EvalContext)

Source from the content-addressed store, hash-verified

2435
2436// IsMax implements the Datum interface.
2437func (d *DTimestampTZ) IsMax(_ *EvalContext) bool {
2438 // Adding 1 overflows to a smaller value
2439 tNext := d.Time.Add(time.Microsecond)
2440 return d.After(tNext)
2441}
2442
2443// IsMin implements the Datum interface.
2444func (d *DTimestampTZ) IsMin(_ *EvalContext) bool {

Callers

nothing calls this directly

Calls 2

AfterMethod · 0.80
AddMethod · 0.65

Tested by

no test coverage detected