mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
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
This commit is contained in:
@@ -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.
|
||||
** 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.
|
||||
*/
|
||||
#ifndef SQLITE_MAX_PAGE_SIZE
|
||||
# define SQLITE_MAX_PAGE_SIZE 65536
|
||||
#ifdef SQLITE_MAX_PAGE_SIZE
|
||||
# undef SQLITE_MAX_PAGE_SIZE
|
||||
#endif
|
||||
#define SQLITE_MAX_PAGE_SIZE 65536
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user