mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Fix a problem causing sqlite3_changes() to return an incorrect value following a "DELETE FROM tbl" command on an intkey table (because internal b+tree cells were being included in the count).
FossilOrigin-Name: f662ff4746aaa43e63e20710b8cbfeeceab3183e953ac1685c41846d2e9d124c
This commit is contained in:
@@ -9576,6 +9576,7 @@ static int clearDatabasePage(
|
||||
if( !pPage->leaf ){
|
||||
rc = clearDatabasePage(pBt, get4byte(&pPage->aData[hdr+8]), 1, pnChange);
|
||||
if( rc ) goto cleardatabasepage_out;
|
||||
if( pPage->intKey ) pnChange = 0;
|
||||
}
|
||||
if( pnChange ){
|
||||
testcase( !pPage->intKey );
|
||||
|
Reference in New Issue
Block a user