1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Improvements to the parser to increase coverage. Fix the parser so that

at least one expresssion is required after PARTITION BY and within the
list of expressions on VALUES().

FossilOrigin-Name: 02204f8b246c868846f39bd44f2e3bc0fab0275aa09ef3a0e5a8e3d58f484ca8
This commit is contained in:
drh
2018-07-27 23:33:16 +00:00
parent cf8e0861a2
commit 954733b386
6 changed files with 35 additions and 36 deletions

View File

@@ -959,7 +959,10 @@ windowAllocErr:
*/
void sqlite3WindowAttach(Parse *pParse, Expr *p, Window *pWin){
if( p ){
if( pWin ){
/* This routine is only called for the parser. If pWin was not
** allocated due to an OOM, then the parser would fail before ever
** invoking this routine */
if( ALWAYS(pWin) ){
p->pWin = pWin;
pWin->pOwner = p;
if( p->flags & EP_Distinct ){