mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Change the name of the CORRUPTIBLE macro to CORRUPT_DB.
FossilOrigin-Name: f865be10e85a4063394a21827db2d854fc25960c
This commit is contained in:
@@ -2583,14 +2583,15 @@ struct Sqlite3Config {
|
||||
**
|
||||
** One writes:
|
||||
**
|
||||
** assert( X || CORRUPTIBLE );
|
||||
** assert( X || CORRUPT_DB );
|
||||
**
|
||||
** CORRUPTIBLE is true during normal operation. But for many test cases,
|
||||
** it is set to false using a sqlite3_test_control(). This enables assert()
|
||||
** statements to prove things that are always true for well-formed
|
||||
** databases.
|
||||
** CORRUPT_DB is true during normal operation. CORRUPT_DB does not indicate
|
||||
** that the database is definitely corrupt, only that it might be corrupt.
|
||||
** For most test cases, CORRUPT_DB is set to false using a special
|
||||
** sqlite3_test_control(). This enables assert() statements to prove
|
||||
** things that are always true for well-formed databases.
|
||||
*/
|
||||
#define CORRUPTIBLE (sqlite3Config.neverCorrupt==0)
|
||||
#define CORRUPT_DB (sqlite3Config.neverCorrupt==0)
|
||||
|
||||
/*
|
||||
** Context pointer passed down through the tree-walk.
|
||||
|
||||
Reference in New Issue
Block a user