MCPcopy Create free account
hub / github.com/dolthub/doltgresql / MakeDBool

Function MakeDBool

postgres/parser/sem/tree/datum.go:142–147  ·  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

140// MakeDBool converts its argument to a *DBool, returning either DBoolTrue or
141// DBoolFalse.
142func MakeDBool(d DBool) *DBool {
143 if d {
144 return DBoolTrue
145 }
146 return DBoolFalse
147}
148
149// makeParseError returns a parse error using the provided string and type. An
150// optional error can be provided, which will be appended to the end of the

Callers 1

SampleDatumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected