diff options
author | dan <dan@noemail.net> | 2010-08-18 15:25:17 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2010-08-18 15:25:17 +0000 |
commit | 5a9e07eb405d04a6f8b51b97f6c73a3de442965f (patch) | |
tree | 377e1f78d9e12126b50c86837cfe8fe6f4085fa5 /src | |
parent | 35cf908a86dbde84b778d411ce18811a90ad0b99 (diff) | |
download | sqlite-5a9e07eb405d04a6f8b51b97f6c73a3de442965f.tar.gz sqlite-5a9e07eb405d04a6f8b51b97f6c73a3de442965f.zip |
Disable the SQLITE_MAX_PAGE_SIZE compile time option (it is now always set to 65536). Fix some other problems in test files.
FossilOrigin-Name: 56cc883d3af5574c9dafecef8aa96d1d05c01b83
Diffstat (limited to 'src')
-rw-r--r-- | src/sqliteLimit.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/sqliteLimit.h b/src/sqliteLimit.h index 98cddabaf..62772cf0e 100644 --- a/src/sqliteLimit.h +++ b/src/sqliteLimit.h @@ -136,16 +136,18 @@ /* Maximum page size. The upper bound on this value is 65536. This a limit ** imposed by the use of 16-bit offsets within each page. ** -** If this limit is changed, then the compiled library is technically -** incompatible with an SQLite library compiled with a different limit. If -** a process operating on a database with a page-size of 65536 bytes -** crashes, then an instance of SQLite compiled with the default page-size -** limit will not be able to rollback the aborted transaction. This could -** lead to database corruption. -*/ -#ifndef SQLITE_MAX_PAGE_SIZE -# define SQLITE_MAX_PAGE_SIZE 65536 -#endif +** Earlier versions of SQLite allowed the user to change this value at +** compile time. This is no longer permitted, on the grounds that it creates +** a library that is technically incompatible with an SQLite library +** compiled with a different limit. If a process operating on a database +** with a page-size of 65536 bytes crashes, then an instance of SQLite +** compiled with the default page-size limit will not be able to rollback +** the aborted transaction. This could lead to database corruption. +*/ +#ifdef SQLITE_MAX_PAGE_SIZE +# undef SQLITE_MAX_PAGE_SIZE +#endif +#define SQLITE_MAX_PAGE_SIZE 65536 /* |