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

The BtCursor.info fields are only valid if info.nSize!=0.

FossilOrigin-Name: 54c537eead5b08104cfaf0d5b1e2706e53d6f74be2ca02e06229024fd889fc94
This commit is contained in:
drh
2018-05-03 14:07:18 +00:00
parent 4f84e9c7e2
commit da65fc6e32
3 changed files with 8 additions and 8 deletions

View File

@@ -8335,7 +8335,7 @@ int sqlite3BtreeInsert(
if( (pCur->curFlags&BTCF_ValidNKey)!=0 && pX->nKey==pCur->info.nKey ){
/* The current is currently pointing to the entry that is to be
** overwritten */
if( pCur->info.nPayload==pX->nData+pX->nZero ){
if( pCur->info.nSize!=0 && pCur->info.nPayload==pX->nData+pX->nZero ){
return btreeOverwriteCell(pCur, pX);
}
loc = 0;