MCPcopy Create free account
hub / github.com/apache/cloudberry / makeBoolConst

Function makeBoolConst

src/backend/nodes/makefuncs.c:358–364  ·  view source on GitHub ↗

* makeBoolConst - * creates a Const node representing a boolean value (can be NULL too) */

Source from the content-addressed store, hash-verified

356 * creates a Const node representing a boolean value (can be NULL too)
357 */
358Node *
359makeBoolConst(bool value, bool isnull)
360{
361 /* note that pg_type.h hardwires size of bool as 1 ... duplicate it */
362 return (Node *) makeConst(BOOLOID, -1, InvalidOid, 1,
363 BoolGetDatum(value), isnull, true);
364}
365
366/*
367 * makeBoolExpr -

Callers 15

refresh_matview_datafillFunction · 0.85
MakeBoolConstMethod · 0.85
make_row_distinct_opFunction · 0.85
initplan_walkerFunction · 0.85
make_ands_explicitFunction · 0.85
create_append_planFunction · 0.85
negate_clauseFunction · 0.85
find_duplicate_orsFunction · 0.85
process_duplicate_orsFunction · 0.85

Calls 2

makeConstFunction · 0.85
BoolGetDatumFunction · 0.85

Tested by

no test coverage detected