Ben Nason wrote:
In order to test my error handling if "PRAGMA integrity_check;" fails,
I'm looking for an easy way to introduce an integrity error into a
database. Any ideas?
Try writing random binary data into the middle of the database
file. You can do the most damage by writing random data into
the bytes that immediately follow a 1k page boundary. But skip
the first page, because changing it will make SQLite think the
file isn't even a database so it won't even open the file.
--
D. Richard Hipp -- [EMAIL PROTECTED] -- 704.948.4565
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]