/ Check-in [146d4f5d]
Login

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

Overview
Comment:Store the SQLite version number of the last writer in bytes 96..99 of the header.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 146d4f5d3459235d8b2d27a5d77beb7645f75185
User & Date: drh 2010-03-19 16:55:47
Original Comment: Store the SQLite version number of the last writer in bits 96..99 of the header.
Context
2010-03-19
19:02
Have the xUpdate() method of the rtree module virtual table implementation set the *pRowid output variable when inserting a row. Fix for [dd3ba6063a]. check-in: f31d2248 user: dan tags: trunk
16:55
Store the SQLite version number of the last writer in bytes 96..99 of the header. check-in: 146d4f5d user: drh tags: trunk
16:52
Make sure the in-journal boolean vector is cleared and released when ending a transaction. This fixes an obscure problem with the previous check-in. check-in: 69d749d9 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/pager.c.

  4486   4486         change_counter++;
  4487   4487         put32bits(((char*)pPgHdr->pData)+24, change_counter);
  4488   4488   
  4489   4489         /* Also store the current database size in bytes 28..31 */
  4490   4490         assert( pPager->dbSizeValid );
  4491   4491         put32bits(((char*)pPgHdr->pData)+28, pPager->dbSize);
  4492   4492   
         4493  +      /* Also store the SQLite version number in bytes 96..99 */
         4494  +      assert( pPager->dbSizeValid );
         4495  +      put32bits(((char*)pPgHdr->pData)+96, SQLITE_VERSION_NUMBER);
         4496  +
  4493   4497         /* If running in direct mode, write the contents of page 1 to the file. */
  4494   4498         if( DIRECT_MODE ){
  4495   4499           const void *zBuf = pPgHdr->pData;
  4496   4500           assert( pPager->dbFileSize>0 );
  4497   4501           rc = sqlite3OsWrite(pPager->fd, zBuf, pPager->pageSize, 0);
  4498   4502           if( rc==SQLITE_OK ){
  4499   4503             pPager->changeCountDone = 1;