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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user