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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user