mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Add tests to improve coverage of code in window.c. Fix a problem with "SELECT
row_number() OVER ()". FossilOrigin-Name: f41b6b7317e2b5ac5721a3adff49f298ded29f9e0f887af98faeb0cb7e865ab6
This commit is contained in:
@@ -824,6 +824,18 @@ void *sqlite3_aggregate_context(sqlite3_context *p, int nByte){
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
** This function is only used within assert() statements to check that the
|
||||
** aggregate context has already been allocated. i.e.:
|
||||
**
|
||||
** assert( sqlite3VdbeAssertAggContext(p) );
|
||||
*/
|
||||
#ifdef SQLITE_DEBUG
|
||||
int sqlite3VdbeAssertAggContext(sqlite3_context *p){
|
||||
return ((p->pMem->flags & MEM_Agg)!=0);
|
||||
}
|
||||
#endif /* SQLITE_DEBUG */
|
||||
|
||||
/*
|
||||
** Return the auxiliary data pointer, if any, for the iArg'th argument to
|
||||
** the user-function defined by pCtx.
|
||||
|
Reference in New Issue
Block a user