4ee3d477cfc4866bfe8c66b5a59d7d8625bf56e1
[gentoo.git] /
1 https://sqlite.org/src/info/e8275b415a2f03bee
2 https://sqlite.org/src/info/7fc2994434c7d9ed
3
4 --- /sqlite3.c
5 +++ /sqlite3.c
6 @@ -125441,6 +125441,13 @@
7    Expr *pLimit;                 /* Saved LIMIT and OFFSET */
8    int regLimit, regOffset;      /* Registers used by LIMIT and OFFSET */
9  
10 +#ifndef SQLITE_OMIT_WINDOWFUNC
11 +  if( p->pWin ){
12 +    sqlite3ErrorMsg(pParse, "cannot use window functions in recursive queries");
13 +    return;
14 +  }
15 +#endif
16 +
17    /* Obtain authorization to do a recursive query */
18    if( sqlite3AuthCheck(pParse, SQLITE_RECURSIVE, 0, 0, 0) ) return;
19