aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c
index 041c88c76..3811c59de 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -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;