diff options
author | dan <dan@noemail.net> | 2019-03-28 16:15:05 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2019-03-28 16:15:05 +0000 |
commit | 4ded26a53c4df312e9fd06facbbf70377e969983 (patch) | |
tree | 7588d33692e04f5f0c7dcb72199b0cc9b98a2422 /src/sqliteInt.h | |
parent | 6f1644c0f963c8d1d7388d6e52f60a6604aae2c1 (diff) | |
download | sqlite-4ded26a53c4df312e9fd06facbbf70377e969983.tar.gz sqlite-4ded26a53c4df312e9fd06facbbf70377e969983.zip |
Prevent aliases of window functions expressions from being used as arguments to aggregate or other window functions.
FossilOrigin-Name: 1e16d3e8fc60d39ca3899759ff15d355fdd7d3e23b325d8d2b0f954e11ce8dce
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 13f2339da..7480fecf4 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -2524,6 +2524,7 @@ struct Expr { #define EP_WinFunc 0x1000000 /* TK_FUNCTION with Expr.y.pWin set */ #define EP_Subrtn 0x2000000 /* Uses Expr.y.sub. TK_IN, _SELECT, or _EXISTS */ #define EP_Quoted 0x4000000 /* TK_ID was originally quoted */ +#define EP_Win 0x8000000 /* Contains window functions */ /* ** The EP_Propagate mask is a set of properties that automatically propagate @@ -2780,6 +2781,7 @@ struct NameContext { #define NC_MinMaxAgg 0x1000 /* min/max aggregates seen. See note above */ #define NC_Complex 0x2000 /* True if a function or subquery seen */ #define NC_AllowWin 0x4000 /* Window functions are allowed here */ +#define NC_HasWin 0x8000 /* One or more window functions seen */ /* ** An instance of the following object describes a single ON CONFLICT |