1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Fix a pointless conditional. Add a test case.

FossilOrigin-Name: 9367632dd7e4fec9197227e35b0627c2e81ebffc
This commit is contained in:
drh
2014-02-10 21:07:51 +00:00
parent 8af9ad951d
commit a6e3a8c9d5
4 changed files with 27 additions and 9 deletions

View File

@@ -3630,7 +3630,8 @@ static int convertCompoundSelectToSubquery(Walker *pWalker, Select *p){
p->pPrior = 0;
p->pNext = 0;
p->selFlags &= ~SF_Compound;
if( pNew->pPrior ) pNew->pPrior->pNext = pNew;
assert( pNew->pPrior!=0 );
pNew->pPrior->pNext = pNew;
pNew->pLimit = 0;
pNew->pOffset = 0;
return WRC_Continue;