SQLite Android Bindings
Check-in [8a027aa451]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Partly revert [e8a9b149f7] so that for SEE-enabled builds, the journal mode of the database is not changed to match the configuration flags as soon as it is opened.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8a027aa45199144f587937a18155a3c355b215fd
User & Date: dan 2018-09-24 19:06:18
Context
2018-09-25
19:33
Upgrade this project to 3.25.2. check-in: 00dbc13062 user: dan tags: trunk
2018-09-24
19:06
Partly revert [e8a9b149f7] so that for SEE-enabled builds, the journal mode of the database is not changed to match the configuration flags as soon as it is opened. check-in: 8a027aa451 user: dan tags: trunk
2018-09-18
20:41
Upgrade this project to version 3.25.1. check-in: 2326888d88 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to sqlite3/src/main/java/org/sqlite/database/sqlite/SQLiteConnection.java.

   213    213       private void open() {
   214    214           mConnectionPtr = nativeOpen(mConfiguration.path, mConfiguration.openFlags,
   215    215                   mConfiguration.label,
   216    216                   SQLiteDebug.DEBUG_SQL_STATEMENTS, SQLiteDebug.DEBUG_SQL_TIME);
   217    217   
   218    218           setPageSize();
   219    219           setForeignKeyModeFromConfiguration();
   220         -        setWalModeFromConfiguration();
   221    220           setJournalSizeLimit();
   222    221           setAutoCheckpointInterval();
   223         -        setLocaleFromConfiguration();
   224         -
          222  +        if( !nativeHasCodec() ){
          223  +            setWalModeFromConfiguration();
          224  +            setLocaleFromConfiguration();
          225  +        }
   225    226           // Register custom functions.
   226    227           final int functionCount = mConfiguration.customFunctions.size();
   227    228           for (int i = 0; i < functionCount; i++) {
   228    229               SQLiteCustomFunction function = mConfiguration.customFunctions.get(i);
   229    230               nativeRegisterCustomFunction(mConnectionPtr, function);
   230    231           }
   231    232       }