mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Merge all recent 3.8.2 beta changes from trunk.
FossilOrigin-Name: 67c34ccfa9596a923695dc4994ec87b331f8326c
This commit is contained in:
@@ -2550,6 +2550,7 @@ struct Sqlite3Config {
|
||||
int bOpenUri; /* True to interpret filenames as URIs */
|
||||
int bUseCis; /* Use covering indices for full-scans */
|
||||
int mxStrlen; /* Maximum string length */
|
||||
int neverCorrupt; /* Database is always well-formed */
|
||||
int szLookaside; /* Default lookaside buffer size */
|
||||
int nLookaside; /* Default lookaside buffer count */
|
||||
sqlite3_mem_methods m; /* Low-level memory allocation interface */
|
||||
@@ -2586,6 +2587,24 @@ struct Sqlite3Config {
|
||||
#endif
|
||||
};
|
||||
|
||||
/*
|
||||
** This macro is used inside of assert() statements to indicate that
|
||||
** the assert is only valid on a well-formed database. Instead of:
|
||||
**
|
||||
** assert( X );
|
||||
**
|
||||
** One writes:
|
||||
**
|
||||
** assert( X || CORRUPT_DB );
|
||||
**
|
||||
** 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 CORRUPT_DB (sqlite3Config.neverCorrupt==0)
|
||||
|
||||
/*
|
||||
** Context pointer passed down through the tree-walk.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user