aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/attach.c2
-rw-r--r--src/pragma.c2
-rw-r--r--src/where.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/attach.c b/src/attach.c
index 87c15ae3d..ce95ea702 100644
--- a/src/attach.c
+++ b/src/attach.c
@@ -158,7 +158,9 @@ static void attachFunc(
sqlite3PagerLockingMode(pPager, db->dfltLockMode);
sqlite3BtreeSecureDelete(aNew->pBt,
sqlite3BtreeSecureDelete(db->aDb[0].pBt,-1) );
+#ifndef SQLITE_OMIT_PAGER_PRAGMAS
sqlite3BtreeSetPagerFlags(aNew->pBt, 3 | (db->flags & PAGER_FLAGS_MASK));
+#endif
}
aNew->safety_level = 3;
aNew->zName = sqlite3DbStrDup(db, zName);
diff --git a/src/pragma.c b/src/pragma.c
index f0f7b5b66..ffaf69e9e 100644
--- a/src/pragma.c
+++ b/src/pragma.c
@@ -183,6 +183,8 @@ static void setAllPagerFlags(sqlite3 *db){
}
}
}
+#else
+# define setAllPagerFlags(X) /* no-op */
#endif
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
*/