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

Method Prev

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

Prev implements the Datum interface.

(ctx context.Context, cmpCtx CompareContext)

Source from the content-addressed store, hash-verified

746
747// Prev implements the Datum interface.
748func (d *DInt) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool) {
749 return NewDInt(*d - 1), true
750}
751
752// Next implements the Datum interface.
753func (d *DInt) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool) {

Callers

nothing calls this directly

Calls 1

NewDIntFunction · 0.85

Tested by

no test coverage detected