/ Check-in [6064584d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:The page size becomes fixed as soon as page1 from a non-empty database file is read.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6064584d578f0ac7aba3f67912a5d9eb1a3c6001469f6b9becbe68871131f887
User & Date: drh 2019-01-06 02:06:31
Context
2019-01-07
15:57
For SQLITE_ENABLE_PREUPDATE_HOOK builds, disable the optimization for a REPLACE command on a WITHOUT ROWID table with no indexes, triggers or foreign key constraints that causes SQLite to clobber any existing row without separately checking for it. This optimization causes SQLite to omit the expected pre-update-hook callbacks. check-in: 6281ef97 user: dan tags: trunk
2019-01-06
02:06
The page size becomes fixed as soon as page1 from a non-empty database file is read. check-in: 6064584d user: drh tags: trunk
2019-01-05
21:56
Add the exprNodeCopy() routine that will safely memcpy() an Expr node that might be a size-reduced node. check-in: a874c649 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

  3096   3096       ** between 512 and 65536 inclusive. */
  3097   3097       if( ((pageSize-1)&pageSize)!=0
  3098   3098        || pageSize>SQLITE_MAX_PAGE_SIZE 
  3099   3099        || pageSize<=256 
  3100   3100       ){
  3101   3101         goto page1_init_failed;
  3102   3102       }
         3103  +    pBt->btsFlags |= BTS_PAGESIZE_FIXED;
  3103   3104       assert( (pageSize & 7)==0 );
  3104   3105       /* EVIDENCE-OF: R-59310-51205 The "reserved space" size in the 1-byte
  3105   3106       ** integer at offset 20 is the number of bytes of space at the end of
  3106   3107       ** each page to reserve for extensions. 
  3107   3108       **
  3108   3109       ** EVIDENCE-OF: R-37497-42412 The size of the reserved region is
  3109   3110       ** determined by the one-byte unsigned integer found at an offset of 20