1
0
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:
drh
2013-11-29 15:39:36 +00:00
parent 09fe614372
commit b202366509
4 changed files with 17 additions and 16 deletions

View File

@@ -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.