From: Ilia Alshanetsky Date: Tue, 20 Dec 2005 15:33:03 +0000 (+0000) Subject: Updated libsqlite in ext/pdo_sqlite to 3.2.8. X-Git-Tag: php-5.1.2RC1~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3450841dbef749545ed5ee2307427674f9a93f31;p=php Updated libsqlite in ext/pdo_sqlite to 3.2.8. --- diff --git a/NEWS b/NEWS index 80bbfaae11..287f8c93aa 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Jan 2006, PHP 5.1.2 - Updated libsqlite in ext/sqlite to 2.8.17. (Ilia) +- Updated libsqlite in ext/pdo_sqlite to 3.2.8. (Ilia) - Updated to libxml2-2.6.22 and libxslt-1.1.15 in the win32 bundle. (Rob) - Added new extensions: (Ilia, Wez) . XMLWriter diff --git a/ext/pdo_sqlite/sqlite/VERSION b/ext/pdo_sqlite/sqlite/VERSION index 406ebcbd95..f092941a75 100644 --- a/ext/pdo_sqlite/sqlite/VERSION +++ b/ext/pdo_sqlite/sqlite/VERSION @@ -1 +1 @@ -3.2.7 +3.2.8 diff --git a/ext/pdo_sqlite/sqlite/src/pager.c b/ext/pdo_sqlite/sqlite/src/pager.c index 1edfbb4e7e..f06d3fec6c 100644 --- a/ext/pdo_sqlite/sqlite/src/pager.c +++ b/ext/pdo_sqlite/sqlite/src/pager.c @@ -2981,7 +2981,7 @@ void sqlite3pager_dont_write(Pager *pPager, Pgno pgno){ pPg = pager_lookup(pPager, pgno); pPg->alwaysRollback = 1; - if( pPg && pPg->dirty ){ + if( pPg && pPg->dirty && !pPager->stmtInUse ){ if( pPager->dbSize==(int)pPg->pgno && pPager->origDbSizedbSize ){ /* If this pages is the last page in the file and the file has grown ** during the current transaction, then do NOT mark the page as clean.