In sqlite_dbpage, cancel any pending truncate operation if there an error

occurs later in the transaction.

FossilOrigin-Name: 1abab10f85a4dba5ffe51a30eeef30853c120e5566ed97b3af1526fff597c647
This commit is contained in:
drh
2024-11-30 14:13:35 +00:00
parent 03e306b3a1
commit c5b9da34f2
3 changed files with 9 additions and 7 deletions
+2
View File
@@ -393,6 +393,8 @@ static int dbpageUpdate(
memcpy(aPage, pData, szPage);
pTab->pgnoTrunc = 0;
}
}else{
pTab->pgnoTrunc = 0;
}
sqlite3PagerUnref(pDbPage);
return rc;