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

Function MakeDBool

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

MakeDBool converts its argument to a *DBool, returning either DBoolTrue or DBoolFalse.

(d DBool)

Source from the content-addressed store, hash-verified

248// MakeDBool converts its argument to a *DBool, returning either DBoolTrue or
249// DBoolFalse.
250func MakeDBool(d DBool) *DBool {
251 if d {
252 return DBoolTrue
253 }
254 return DBoolFalse
255}
256
257// MustBeDBool attempts to retrieve a DBool from an Expr, panicking if the
258// assertion fails.

Callers 2

SampleDatumFunction · 0.85
EvalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…