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

Method Max

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

Max implements the Datum interface.

(ctx context.Context, cmpCtx CompareContext)

Source from the content-addressed store, hash-verified

5910
5911// Max implements the Datum interface.
5912func (d *DOidWrapper) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool) {
5913 max, ok := d.Wrapped.Max(ctx, cmpCtx)
5914 return wrapWithOid(max, d.Oid), ok
5915}
5916
5917// Min implements the Datum interface.
5918func (d *DOidWrapper) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool) {

Callers

nothing calls this directly

Calls 2

wrapWithOidFunction · 0.85
MaxMethod · 0.65

Tested by

no test coverage detected