mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
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.
This commit is contained in:
@@ -3305,6 +3305,7 @@ eval_const_expressions_mutator(Node *node,
|
||||
newntest->arg = (Expr *) relem;
|
||||
newntest->nulltesttype = ntest->nulltesttype;
|
||||
newntest->argisrow = type_is_rowtype(exprType(relem));
|
||||
newntest->location = ntest->location;
|
||||
newargs = lappend(newargs, newntest);
|
||||
}
|
||||
/* If all the inputs were constants, result is TRUE */
|
||||
@@ -3343,6 +3344,7 @@ eval_const_expressions_mutator(Node *node,
|
||||
newntest->arg = (Expr *) arg;
|
||||
newntest->nulltesttype = ntest->nulltesttype;
|
||||
newntest->argisrow = ntest->argisrow;
|
||||
newntest->location = ntest->location;
|
||||
return (Node *) newntest;
|
||||
}
|
||||
case T_BooleanTest:
|
||||
@@ -3395,6 +3397,7 @@ eval_const_expressions_mutator(Node *node,
|
||||
newbtest = makeNode(BooleanTest);
|
||||
newbtest->arg = (Expr *) arg;
|
||||
newbtest->booltesttype = btest->booltesttype;
|
||||
newbtest->location = btest->location;
|
||||
return (Node *) newbtest;
|
||||
}
|
||||
case T_PlaceHolderVar:
|
||||
|
||||
Reference in New Issue
Block a user