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

Function DatumGetBool

src/include/postgres.h:484–484  ·  view source on GitHub ↗

* DatumGetBool * Returns boolean value of a datum. * * Note: any nonzero value will be considered true. */

Source from the content-addressed store, hash-verified

482 * Note: any nonzero value will be considered true.
483 */
484static inline bool DatumGetBool(Datum d) { return (bool)(d != 0); }
485static inline Datum BoolGetDatum(bool b) { return (b ? 1 : 0); }
486
487static inline char DatumGetChar(Datum d) { return (char) d; }

Callers 15

gbt_byteagtFunction · 0.85
gbt_byteageFunction · 0.85
gbt_byteaeqFunction · 0.85
gbt_bytealeFunction · 0.85
gbt_bytealtFunction · 0.85
gbt_numeric_gtFunction · 0.85
gbt_numeric_geFunction · 0.85
gbt_numeric_eqFunction · 0.85
gbt_numeric_leFunction · 0.85
gbt_numeric_ltFunction · 0.85
gbt_intvgtFunction · 0.85
gbt_intvgeFunction · 0.85

Calls

no outgoing calls

Tested by 4

operator_predicate_proofFunction · 0.68
test_predtestFunction · 0.68
sessionizeFunction · 0.68
interpt_ppFunction · 0.68