From d5f23af6bfbc454e86dd16e5c7a0bfc0cf6189d0 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 7 Dec 2011 21:46:56 +0200 Subject: Add const qualifiers to node inspection functions Thomas Munro --- src/backend/optimizer/util/clauses.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/optimizer') diff --git a/src/backend/optimizer/util/clauses.c b/src/backend/optimizer/util/clauses.c index ad029501d29..16137e01663 100644 --- a/src/backend/optimizer/util/clauses.c +++ b/src/backend/optimizer/util/clauses.c @@ -181,9 +181,9 @@ make_opclause(Oid opno, Oid opresulttype, bool opretset, * or (op expr) */ Node * -get_leftop(Expr *clause) +get_leftop(const Expr *clause) { - OpExpr *expr = (OpExpr *) clause; + const OpExpr *expr = (const OpExpr *) clause; if (expr->args != NIL) return linitial(expr->args); @@ -198,9 +198,9 @@ get_leftop(Expr *clause) * NB: result will be NULL if applied to a unary op clause. */ Node * -get_rightop(Expr *clause) +get_rightop(const Expr *clause) { - OpExpr *expr = (OpExpr *) clause; + const OpExpr *expr = (const OpExpr *) clause; if (list_length(expr->args) >= 2) return lsecond(expr->args); -- cgit v1.2.3