diff options
author | drh <drh@noemail.net> | 2011-12-10 17:17:17 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-12-10 17:17:17 +0000 |
commit | 1acc6cbe0078c40dd54d73800d874487b49a6dc5 (patch) | |
tree | 9bf640cd5a60efb24edcde5d6501be1b932f4b7e /src | |
parent | 678a9aa7bdae01e70cb615058117b136eb045fbe (diff) | |
download | sqlite-1acc6cbe0078c40dd54d73800d874487b49a6dc5.tar.gz sqlite-1acc6cbe0078c40dd54d73800d874487b49a6dc5.zip |
Allow UNION ALL compounds to be promoted up to replace a simple wrapper
SELECT even if the compounds are joins.
FossilOrigin-Name: 3d4b4f4fb7c1d9f1c742fef884383e9f50f8630e
Diffstat (limited to 'src')
-rw-r--r-- | src/select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c index c41dc07f9..02e71960f 100644 --- a/src/select.c +++ b/src/select.c @@ -2812,7 +2812,7 @@ static int flattenSubquery( testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate ); if( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))!=0 || (pSub1->pPrior && pSub1->op!=TK_ALL) - || NEVER(pSub1->pSrc==0) || pSub1->pSrc->nSrc!=1 + || NEVER(pSub1->pSrc==0) || pSub1->pSrc->nSrc<1 ){ return 0; } |