diff options
author | drh <drh@noemail.net> | 2014-02-10 18:56:05 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-02-10 18:56:05 +0000 |
commit | 8af9ad951da6621872eefdc2f5c896adaabf89cb (patch) | |
tree | be508352ff817aa246f2cae894186a2b98850bec /src | |
parent | 60830e3c535f080a4c63ed73b7ba2c5108265d49 (diff) | |
download | sqlite-8af9ad951da6621872eefdc2f5c896adaabf89cb.tar.gz sqlite-8af9ad951da6621872eefdc2f5c896adaabf89cb.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/select.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/select.c b/src/select.c index 07cb571da..75e495f10 100644 --- a/src/select.c +++ b/src/select.c @@ -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; |