diff options
author | drh <drh@noemail.net> | 2014-05-29 20:29:13 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-05-29 20:29:13 +0000 |
commit | cbabb203908dc97166f2c5fe9366e134fdaf1ed2 (patch) | |
tree | 5cc34fc60adfff789aa59dc771b02e9440c0ec1e /src/select.c | |
parent | aff0fbb6a51b2ad8a5e1d7787236226603380437 (diff) | |
parent | b463fef3fda4d233ba634d81bfc9c3bf001f0513 (diff) | |
download | sqlite-cbabb203908dc97166f2c5fe9366e134fdaf1ed2.tar.gz sqlite-cbabb203908dc97166f2c5fe9366e134fdaf1ed2.zip |
Merge trunk changes into the sessions branch.
FossilOrigin-Name: 9f18e78f039ffa89a8806810ad385bdc51bc88ed
Diffstat (limited to 'src/select.c')
-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 b3939ba64..ba6f6551a 100644 --- a/src/select.c +++ b/src/select.c @@ -4498,7 +4498,7 @@ static void explainSimpleCount( Index *pIdx /* Index used to optimize scan, or NULL */ ){ if( pParse->explain==2 ){ - int bCover = (pIdx!=0 && (HasRowid(pTab) || pIdx->autoIndex!=2)); + int bCover = (pIdx!=0 && (HasRowid(pTab) || !IsPrimaryKeyIndex(pIdx))); char *zEqp = sqlite3MPrintf(pParse->db, "SCAN TABLE %s%s%s", pTab->zName, bCover ? " USING COVERING INDEX " : "", |