diff options
author | drh <drh@noemail.net> | 2015-04-15 05:31:02 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-04-15 05:31:02 +0000 |
commit | 65df68e8c56bf3b79a31a7a1e853f4067998e207 (patch) | |
tree | 0c5cd87757087f86c6eafa6c4a0193e153fdfd9d /src | |
parent | 1978d171cb1f64765b18c81ad3d8bde62c2d434c (diff) | |
download | sqlite-65df68e8c56bf3b79a31a7a1e853f4067998e207.tar.gz sqlite-65df68e8c56bf3b79a31a7a1e853f4067998e207.zip |
Correctly deal with an unknown collating sequence on an indexed DISTINCT query.
FossilOrigin-Name: a0b6e2fed3e95cf78ed0515c6e4da7510af4e86a
Diffstat (limited to 'src')
-rw-r--r-- | src/where.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c index 42e950e41..e1c5f4eca 100644 --- a/src/where.c +++ b/src/where.c @@ -1532,7 +1532,7 @@ static int findIndexCol( && p->iTable==iBase ){ CollSeq *pColl = sqlite3ExprCollSeq(pParse, pList->a[i].pExpr); - if( ALWAYS(pColl) && 0==sqlite3StrICmp(pColl->zName, zColl) ){ + if( pColl && 0==sqlite3StrICmp(pColl->zName, zColl) ){ return i; } } |