On Sun, Jan 1, 2012 at 4:49 PM, Lalitkumar Choudhary <
lalitkumar.choudh...@lnties.com> wrote:

> ...Sqlite database will crash if you write some garbage value into the
> file. May i know exactly what is the garbage value? Is it any value
> different from datatype or anything else, can u please give one example?
>

That wording does not mean a specific value, but is intended to mean
something like "if you modify the database file from outside the sqlite3
API, results are undefined" where "undefined" means "almost certainly
corruption."

For example:

echo "123" >> mydbfile

that could effectively corrupt it even though it doesn't actually modify
any bytes used by the db. (Whether or not that _does_ corrupt it depends
largely on how sqlite3 tracks the logical end-of-file.)

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to