diff options
author | dan <dan@noemail.net> | 2014-11-14 15:28:33 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2014-11-14 15:28:33 +0000 |
commit | dd715f7c57f78f96fa00f8cb299d082f59ddbfb5 (patch) | |
tree | 66c77a1f30314d336add970ef6d7a92ee309589f /src/expr.c | |
parent | 8ac1a67eff83ed80083e94deb70a366cf1a9568e (diff) | |
download | sqlite-dd715f7c57f78f96fa00f8cb299d082f59ddbfb5.tar.gz sqlite-dd715f7c57f78f96fa00f8cb299d082f59ddbfb5.zip |
Do not automatically remove the DISTINCT keyword from "a IN (SELECT DISTINCT ...)" expressions. Fix for [db87229497].
FossilOrigin-Name: 55e453aadbb676dda07f0fa537d39ce184ef636c
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index 13a9cb46f..25f0be400 100644 --- a/src/expr.c +++ b/src/expr.c @@ -1857,7 +1857,6 @@ int sqlite3CodeSubselect( assert( (pExpr->iTable&0x0000FFFF)==pExpr->iTable ); pSelect->iLimit = 0; testcase( pSelect->selFlags & SF_Distinct ); - pSelect->selFlags &= ~SF_Distinct; testcase( pKeyInfo==0 ); /* Caused by OOM in sqlite3KeyInfoAlloc() */ if( sqlite3Select(pParse, pSelect, &dest) ){ sqlite3KeyInfoUnref(pKeyInfo); |