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

Some changes to test scripts related to codec enabled versions of sqlite.

FossilOrigin-Name: 85dd51a75c75b2a123744f646e04538e4e5d89b3
This commit is contained in:
dan
2010-06-22 13:46:43 +00:00
parent 3c3dd7b927
commit 68928b6c3e
39 changed files with 217 additions and 52 deletions

View File

@@ -5022,9 +5022,12 @@ static int pager_incr_changecounter(Pager *pPager, int isDirectMode){
/* If running in direct mode, write the contents of page 1 to the file. */
if( DIRECT_MODE ){
const void *zBuf = pPgHdr->pData;
const void *zBuf;
assert( pPager->dbFileSize>0 );
rc = sqlite3OsWrite(pPager->fd, zBuf, pPager->pageSize, 0);
CODEC2(pPager, pPgHdr->pData, 1, 6, rc=SQLITE_NOMEM, zBuf);
if( rc==SQLITE_OK ){
rc = sqlite3OsWrite(pPager->fd, zBuf, pPager->pageSize, 0);
}
if( rc==SQLITE_OK ){
pPager->changeCountDone = 1;
}