* BoolDatumGetBoolIndexOption returns BoolIndexOption for given bool Datum. */
| 1193 | * BoolDatumGetBoolIndexOption returns BoolIndexOption for given bool Datum. |
| 1194 | */ |
| 1195 | BoolIndexOption |
| 1196 | BoolDatumGetBoolIndexOption(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 | /* |