From c063da1769229efa8d8d21f0d068b3199ea3a6b3 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 22 Feb 2015 14:40:27 -0500 Subject: Add parse location fields to NullTest and BooleanTest structs. We did not need a location tag on NullTest or BooleanTest before, because no error messages referred directly to their locations. That's planned to change though, so add these fields in a separate housekeeping commit. Catversion bump because stored rules may change. --- src/backend/parser/parse_expr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/backend/parser/parse_expr.c') diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c index 791639a7db3..f314745818b 100644 --- a/src/backend/parser/parse_expr.c +++ b/src/backend/parser/parse_expr.c @@ -789,6 +789,7 @@ transformAExprOp(ParseState *pstate, A_Expr *a) NullTest *n = makeNode(NullTest); n->nulltesttype = IS_NULL; + n->location = a->location; if (exprIsNullConstant(lexpr)) n->arg = (Expr *) rexpr; -- cgit v1.2.3