MCPcopy Create free account
hub / github.com/documentdb/documentdb / BoolDatumGetBoolIndexOption

Function BoolDatumGetBoolIndexOption

pg_documentdb/src/metadata/index.c:1195–1210  ·  view source on GitHub ↗

* BoolDatumGetBoolIndexOption returns BoolIndexOption for given bool Datum. */

Source from the content-addressed store, hash-verified

1193 * BoolDatumGetBoolIndexOption returns BoolIndexOption for given bool Datum.
1194 */
1195BoolIndexOption
1196BoolDatumGetBoolIndexOption(bool datumIsNull, Datum datum)
1197{
1198 if (datumIsNull)
1199 {
1200 return BoolIndexOption_Undefined;
1201 }
1202 else if (DatumGetBool(datum))
1203 {
1204 return BoolIndexOption_True;
1205 }
1206 else
1207 {
1208 return BoolIndexOption_False;
1209 }
1210}
1211
1212
1213/*

Callers 1

DatumGetIndexSpecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected