aboutsummaryrefslogtreecommitdiff
path: root/src/where.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/where.c')
-rw-r--r--src/where.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/where.c b/src/where.c
index 1375c585e..05e6824f0 100644
--- a/src/where.c
+++ b/src/where.c
@@ -4561,6 +4561,7 @@ static int whereLoopAddBtree(
rSize = whereCost(pSrc->pTab->nRowEst);
rLogSize = estLog(rSize);
+#ifndef SQLITE_OMIT_AUTOMATIC_INDEX
/* Automatic indexes */
if( !pBuilder->pOrSet
&& (pWInfo->pParse->db->flags & SQLITE_AutoIndex)!=0
@@ -4595,6 +4596,7 @@ static int whereLoopAddBtree(
}
}
}
+#endif /* SQLITE_OMIT_AUTOMATIC_INDEX */
/* Loop over all indices
*/