Skip to content

Commit 81f0921

Browse files
Prevent call to PRAGMA page_size when compiled with SQLITE_HAS_CODEC
1 parent 72e8e94 commit 81f0921

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlcipher/src/main/java/net/zetetic/database/sqlcipher/SQLiteConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private void dispose(boolean finalized) {
263263
}
264264

265265
private void setPageSize() {
266-
if (!mConfiguration.isInMemoryDb() && !mIsReadOnlyConnection) {
266+
if (!mConfiguration.isInMemoryDb() && !mIsReadOnlyConnection && !SQLiteDatabase.hasCodec()) {
267267
final long newValue = SQLiteGlobal.getDefaultPageSize();
268268
long value = executeForLong("PRAGMA page_size", null, null);
269269
if (value != newValue) {

0 commit comments

Comments
 (0)