mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Fix the compound-select-to-subquery converter so that it works with the
new compound-select object linkage introduced as part of the fix for ticket [31a19d11b97088296]. FossilOrigin-Name: 572d4be4db03ce4afe9ae70f148703c74e0d8de0
This commit is contained in:
@@ -3628,6 +3628,9 @@ static int convertCompoundSelectToSubquery(Walker *pWalker, Select *p){
|
||||
pNew->pHaving = 0;
|
||||
pNew->pOrderBy = 0;
|
||||
p->pPrior = 0;
|
||||
p->pNext = 0;
|
||||
p->selFlags &= ~SF_Compound;
|
||||
if( pNew->pPrior ) pNew->pPrior->pNext = pNew;
|
||||
pNew->pLimit = 0;
|
||||
pNew->pOffset = 0;
|
||||
return WRC_Continue;
|
||||
|
||||
Reference in New Issue
Block a user