mirror of
https://github.com/postgres/postgres.git
synced 2025-08-19 23:22:23 +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:
@@ -1050,6 +1050,7 @@ typedef struct NullTest
|
||||
Expr *arg; /* input expression */
|
||||
NullTestType nulltesttype; /* IS NULL, IS NOT NULL */
|
||||
bool argisrow; /* T if input is of a composite type */
|
||||
int location; /* token location, or -1 if unknown */
|
||||
} NullTest;
|
||||
|
||||
/*
|
||||
@@ -1071,6 +1072,7 @@ typedef struct BooleanTest
|
||||
Expr xpr;
|
||||
Expr *arg; /* input expression */
|
||||
BoolTestType booltesttype; /* test type */
|
||||
int location; /* token location, or -1 if unknown */
|
||||
} BooleanTest;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user