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

Function MustBeDInt

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

MustBeDInt attempts to retrieve a DInt from an Expr, panicking if the assertion fails.

(e Expr)

Source from the content-addressed store, hash-verified

693// MustBeDInt attempts to retrieve a DInt from an Expr, panicking if the
694// assertion fails.
695func MustBeDInt(e Expr) DInt {
696 i, ok := AsDInt(e)
697 if !ok {
698 panic(errors.AssertionFailedf("expected *DInt, found %T", e))
699 }
700 return i
701}
702
703// ResolvedType implements the TypedExpr interface.
704func (*DInt) ResolvedType() *types.T {

Callers 2

CompareMethod · 0.85
ResolveAsTypeMethod · 0.85

Calls 1

AsDIntFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…