* transformWhereClause - * Transform the qualification and make sure it is of type boolean. * Used for WHERE and allied clauses. * * constructName does not affect the semantics, but is used in error messages */
| 1937 | * constructName does not affect the semantics, but is used in error messages |
| 1938 | */ |
| 1939 | Node * |
| 1940 | transformWhereClause(ParseState *pstate, Node *clause, |
| 1941 | ParseExprKind exprKind, const char *constructName) |
| 1942 | { |
| 1943 | Node *qual; |
| 1944 | |
| 1945 | if (clause == NULL) |
| 1946 | return NULL; |
| 1947 | |
| 1948 | qual = transformExpr(pstate, clause, exprKind); |
| 1949 | |
| 1950 | qual = coerce_to_boolean(pstate, qual, constructName); |
| 1951 | |
| 1952 | return qual; |
| 1953 | } |
| 1954 | |
| 1955 | |
| 1956 | /* |