Closed GoogleCodeExporter closed 8 years ago
yes, places.sqlite is a WAL enabled database;
If there are unwritten pages in the places.sqlite file, you will corrupt the
database by resetting byte 19 (database format)
See http://www.sqlite.org/wal.html
Backwards Compatibility
The database file format is unchanged for WAL mode. However, the WAL file and
the wal-index are new concepts and so older versions of SQLite will not know
how to recover a crashed SQLite database that was operating in WAL mode when
the crash occurred. To prevent older versions of SQLite from trying to recover
a WAL-mode database (and making matters worse) the database file format version
numbers (bytes 18 and 19 in the database header) are increased from 1 to 2 in
WAL mode. Thus, if an older version of SQLite attempts to connect to an SQLite
database that is operating in WAL mode, it will report an error along the lines
of "file is encrypted or is not a database".
Original comment by noah.hart@gmail.com
on 16 May 2011 at 6:52
Original issue reported on code.google.com by
d...@inweb20.net
on 25 Apr 2011 at 10:14