diff options
author | dan <dan@noemail.net> | 2018-06-22 20:51:35 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2018-06-22 20:51:35 +0000 |
commit | 67a9b8eded051b514db853d53746f484f87bc23b (patch) | |
tree | cc14e3517ed605657b00b8278d520abd81051c01 /src/sqliteInt.h | |
parent | 17074e3a9e1ab157fc37a361e2a4adc43d00e866 (diff) | |
download | sqlite-67a9b8eded051b514db853d53746f484f87bc23b.tar.gz sqlite-67a9b8eded051b514db853d53746f484f87bc23b.zip |
Omit all window-function related code when building with SQLITE_OMIT_WINDOWFUNC.
FossilOrigin-Name: 5f04b016467342b5a796bf702ed25b621eb86f2961c1e703d276c93f2cb6aa89
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 294aaef41..9fab8f559 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -2466,7 +2466,9 @@ struct Expr { AggInfo *pAggInfo; /* Used by TK_AGG_COLUMN and TK_AGG_FUNCTION */ Table *pTab; /* Table for TK_COLUMN expressions. Can be NULL ** for a column of an index on an expression */ +#ifndef SQLITE_OMIT_WINDOWFUNC Window *pWin; /* Window definition for window functions */ +#endif }; /* @@ -2819,8 +2821,10 @@ struct Select { Select *pNext; /* Next select to the left in a compound */ Expr *pLimit; /* LIMIT expression. NULL means not used. */ With *pWith; /* WITH clause attached to this select. Or NULL. */ +#ifndef SQLITE_OMIT_WINDOWFUNC Window *pWin; /* List of window functions */ Window *pWinDefn; /* List of named window definitions */ +#endif }; /* @@ -3517,6 +3521,7 @@ struct Window { int iArgCol; /* Offset of first argument for this function */ }; +#ifndef SQLITE_OMIT_WINDOWFUNC void sqlite3WindowDelete(sqlite3*, Window*); void sqlite3WindowListDelete(sqlite3 *db, Window *p); Window *sqlite3WindowAlloc(Parse*, int, int, Expr*, int , Expr*); @@ -3530,6 +3535,11 @@ void sqlite3WindowUpdate(Parse*, Window*, Window*, FuncDef*); Window *sqlite3WindowDup(sqlite3 *db, Expr *pOwner, Window *p); Window *sqlite3WindowListDup(sqlite3 *db, Window *p); void sqlite3WindowFunctions(void); +#else +# define sqlite3WindowDelete(a,b) +# define sqlite3WindowFunctions() +# define sqlite3WindowAttach(a,b,c) +#endif /* ** Assuming zIn points to the first byte of a UTF-8 character, |