aboutsummaryrefslogtreecommitdiff
path: root/src/select.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-05-29 20:24:20 +0000
committerdrh <drh@noemail.net>2014-05-29 20:24:20 +0000
commitff14013496b17cb697d34b21574a9898a38bbd2c (patch)
tree10d8dc7da780b6dd056f1943cb4abc527436f882 /src/select.c
parent79045882c94a21ddb2c2f829d0a515266555f527 (diff)
parentb463fef3fda4d233ba634d81bfc9c3bf001f0513 (diff)
downloadsqlite-ff14013496b17cb697d34b21574a9898a38bbd2c.tar.gz
sqlite-ff14013496b17cb697d34b21574a9898a38bbd2c.zip
Merge changes from the trunk into the threads branch.
FossilOrigin-Name: 416cb091267de91b9cadee9f7453b8627570b7d3
Diffstat (limited to 'src/select.c')
-rw-r--r--src/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c
index 84ced1caa..74064db10 100644
--- a/src/select.c
+++ b/src/select.c
@@ -4527,7 +4527,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 " : "",