* makeBoolConst - * creates a Const node representing a boolean value (can be NULL too) */
| 356 | * creates a Const node representing a boolean value (can be NULL too) |
| 357 | */ |
| 358 | Node * |
| 359 | makeBoolConst(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 - |
no test coverage detected