Hi Olivier,

Olivier Singla wrote:

Hi,

I was wondering, is there is way to force a database to be corrupted ?
(obviously I need this for testing purposes). Basically I'd like to patch
the database so the next sql command will return SQLITE_CORRUPT.
You might want to look at:

http://www.sqlite.org/lockingv3.html

Scroll down to section 6.0 "How To Corrupt Your Database Files".

Ulrik Petersen

--
Ulrik Petersen
University of Aalborg, Denmark
http://ulrikp.org/

Reply via email to