mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +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:
@@ -212,6 +212,7 @@ negate_clause(Node *node)
|
||||
newexpr->nulltesttype = (expr->nulltesttype == IS_NULL ?
|
||||
IS_NOT_NULL : IS_NULL);
|
||||
newexpr->argisrow = expr->argisrow;
|
||||
newexpr->location = expr->location;
|
||||
return (Node *) newexpr;
|
||||
}
|
||||
}
|
||||
@@ -247,6 +248,7 @@ negate_clause(Node *node)
|
||||
(int) expr->booltesttype);
|
||||
break;
|
||||
}
|
||||
newexpr->location = expr->location;
|
||||
return (Node *) newexpr;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user