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

Store the SQLite version number of the last writer in bits 96..99 of the header.

FossilOrigin-Name: 146d4f5d3459235d8b2d27a5d77beb7645f75185
This commit is contained in:
drh
2010-03-19 16:55:47 +00:00
parent e9c2d34c5b
commit f92a4e35c5
3 changed files with 14 additions and 10 deletions

View File

@@ -4490,6 +4490,10 @@ static int pager_incr_changecounter(Pager *pPager, int isDirectMode){
assert( pPager->dbSizeValid );
put32bits(((char*)pPgHdr->pData)+28, pPager->dbSize);
/* Also store the SQLite version number in bytes 96..99 */
assert( pPager->dbSizeValid );
put32bits(((char*)pPgHdr->pData)+96, SQLITE_VERSION_NUMBER);
/* If running in direct mode, write the contents of page 1 to the file. */
if( DIRECT_MODE ){
const void *zBuf = pPgHdr->pData;