News for hackers. Stuff that matters.
Re:The Use of assert() in SQLite by chiph on Saturday April 27, 2019 @07:19AM (#19764962)
> The CORRUPT_DB macro is used in many assert() statements. In functional testing builds, CORRUPT_DB references a global variable that is true if the database file might contain corruption. This variable is true by default, since we do not normally know whether or not a database is corrupt, but during testing while working on databases that are known to be well-formed, that global variable can be set to false.

This is interesting - this really reveals their philosophy where they assume that until proven to be good, stuff is considered to be broken.

There are no comments on this comment yet.