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

Function MustBeDInt

pkg/sql/sem/tree/datum.go:639–645  ·  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

637// MustBeDInt attempts to retrieve a DInt from an Expr, panicking if the
638// assertion fails.
639func MustBeDInt(e Expr) DInt {
640 i, ok := AsDInt(e)
641 if !ok {
642 panic(errors.AssertionFailedf("expected *DInt, found %T", e))
643 }
644 return i
645}
646
647// ResolvedType implements the TypedExpr interface.
648func (*DInt) ResolvedType() *types.T {

Callers 7

InitMethod · 0.85
UpdateMethod · 0.85
CompareMethod · 0.85
FrameStartIdxMethod · 0.85
FrameEndIdxMethod · 0.85
eval.goFile · 0.85
EvalMethod · 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…