Is this in the CM source code? I don't see this in the Android 2.3 source tree.
On Aug 4, 3:05 pm, Nikolay Elenkov <[email protected]> wrote: > On Thu, Aug 4, 2011 at 4:00 PM, Miguel Morales <[email protected]> > wrote: > > Ok, so this is weird. It seems that WAL mode is being activated from > > the java code. > > I just opened the bad database file in 3.7x and ran the command: > > PRAGMA journal_mode=DELETE > > to disable WAL. I was then able to open the database file in the 3.6x > > version. > > It's in android_database_SQLiteDatabase.cpp. If the database is not read-only, > it tries to use WAL: > > if(!(flags & OPEN_READONLY) && (use_wal_mode(path8))) { > // Configure databases to run in WAL mode. > err = sqlite3_exec(handle,"PRAGMA journal_mode = WAL;", > NULL, NULL,&zErrMsg); > if (SQLITE_OK != err) { > LOGE("sqlite3_exec - Failed to set WAL mode for [%s] \n", path8); > err = sqlite3_exec(handle,"PRAGMA journal_mode = DELETE;", > NULL, NULL,&zErrMsg); > if(SQLITE_OK != err) { > LOGE("sqlite3_exec - Failed to set DELETE mode for [%s] \n", > path8); > throw_sqlite3_exception(env, handle); > goto done; > } > } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

