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

Function MakeDBool

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

216// MakeDBool converts its argument to a *DBool, returning either DBoolTrue or
217// DBoolFalse.
218func MakeDBool(d DBool) *DBool {
219 if d {
220 return DBoolTrue
221 }
222 return DBoolFalse
223}
224
225// MustBeDBool attempts to retrieve a DBool from an Expr, panicking if the
226// assertion fails.

Callers 11

ParseMethod · 0.92
eval.goFile · 0.85
boolFromCmpFunction · 0.85
cmpOpScalarFnFunction · 0.85
makeEvalTupleInFunction · 0.85
PerformCastFunction · 0.85
EvalMethod · 0.85
EvalMethod · 0.85
EvalMethod · 0.85
VisitPostMethod · 0.85
SampleDatumFunction · 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…