sqlite-android
sqlite-android copied to clipboard
SupportSQLiteDatabase.setMaxSqlCacheSize(0) throws IllegalArgumentException
Setting the maxSqlCacheSize to 0 is allowed according to the SupportSQLiteDatabase database docs and the bounds check here. However, setting 0 crashes the PreparedStatementCache because its parent class does not allow 0 as a value:
java.lang.IllegalArgumentException: maxSize <= 0
at androidx.collection.LruCache.<init>(LruCache.java:53)
at io.requery.android.database.sqlite.SQLiteConnection$PreparedStatementCache.<init>(SQLiteConnection.java:1334)
FWIW, Android has the same bug :/