-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/24/2010 05:10 AM, Israel Lins Albuquerque wrote:
> I'm needing a corrupted database for test purpose, someone can help me? 
> I want an database with corruption on index like: 
> "rowid [%ld] missing from index %s" or "wrong # of entries in index %s" 

Create the database without indices.  Note the size.  Then add the indices.
 It will be the case that almost all new data is part of the indices.

Read about the file format and pick how to corrupt an index.  Putting
several zero bytes at the beginning of some pages should go a long way.

  http://www.sqlite.org/fileformat.html#database_file_format

If SQLite crashes in any way other than reporting an error, then firstly
congratulations on finding a bug, and secondly save the database for DRH and
team to have a look.

Roger

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwjtB8ACgkQmOOfHg372QQ1wgCfX0D+cUnA4L2Teet0u0w3tmFW
O1gAn1cawQ9P/eFRmjd6DdFapo4Dkg8j
=Cl7v
-----END PGP SIGNATURE-----
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to