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/include/catalog/catversion.h | 2 +- src/include/nodes/primnodes.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h index 7133b96151..7ed743df97 100644 --- a/src/include/catalog/catversion.h +++ b/src/include/catalog/catversion.h @@ -53,6 +53,6 @@ */ /* yyyymmddN */ -#define CATALOG_VERSION_NO 201502191 +#define CATALOG_VERSION_NO 201502221 #endif diff --git a/src/include/nodes/primnodes.h b/src/include/nodes/primnodes.h index 1d06f426be..b004da6dc4 100644 --- a/src/include/nodes/primnodes.h +++ b/src/include/nodes/primnodes.h @@ -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; /* -- cgit v1.2.3