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

Function transformWhereClause

src/backend/parser/parse_clause.c:1939–1953  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

1937 * constructName does not affect the semantics, but is used in error messages
1938 */
1939Node *
1940transformWhereClause(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/*

Callers 14

CreateTriggerFiringOnFunction · 0.85
CreatePolicyFunction · 0.85
AlterPolicyFunction · 0.85
transformIndexStmtFunction · 0.85
transformRuleStmtFunction · 0.85
transformDeleteStmtFunction · 0.85
transformSelectStmtFunction · 0.85
transformUpdateStmtFunction · 0.85
transformPLAssignStmtFunction · 0.85
ParseFuncOrColumnFunction · 0.85
transformJoinOnClauseFunction · 0.85

Calls 2

transformExprFunction · 0.85
coerce_to_booleanFunction · 0.85

Tested by 2