1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Modify the windows locking code so that it works correctly for a database

being shared between Win95/98/ME and WinNT/2K/XP systems.  Ticket #310. (CVS 988)

FossilOrigin-Name: 8c402db7e0745622d9950e5ca5d4d8e933da436c
This commit is contained in:
drh
2003-05-29 17:43:08 +00:00
parent 124e74e685
commit 9ac717d7f6
5 changed files with 70 additions and 32 deletions

View File

@@ -11,7 +11,7 @@
*************************************************************************
** Internal interface definitions for SQLite.
**
** @(#) $Id: sqliteInt.h,v 1.186 2003/05/17 19:04:04 drh Exp $
** @(#) $Id: sqliteInt.h,v 1.187 2003/05/29 17:43:08 drh Exp $
*/
#include "config.h"
#include "sqlite.h"
@@ -132,8 +132,13 @@ typedef unsigned INTPTR_TYPE uptr; /* Big enough to hold a pointer */
** multi-megabyte records are OK. If your needs are different, you can
** change this define and recompile to increase or decrease the record
** size.
**
** The 16777198 is computed as follows: 238 bytes of payload on the
** original pages plus 16448 overflow pages each holding 1020 bytes of
** data.
*/
#define MAX_BYTES_PER_ROW 1048576
/* #define MAX_BYTES_PER_ROW 1048576 */
#define MAX_BYTES_PER_ROW 16777198
/*
** If memory allocation problems are found, recompile with