diff options
author | drh <> | 2024-04-12 02:57:52 +0000 |
---|---|---|
committer | drh <> | 2024-04-12 02:57:52 +0000 |
commit | c494fdb580bc7c738a3a53be1ad2fd2ca3aa08e5 (patch) | |
tree | a22a97a65d57575e61c0f487fb68a084f23dac13 /src | |
parent | b6d108f0b37a0fcda58647cfb75d18909a496d77 (diff) | |
download | sqlite-c494fdb580bc7c738a3a53be1ad2fd2ca3aa08e5.tar.gz sqlite-c494fdb580bc7c738a3a53be1ad2fd2ca3aa08e5.zip |
Mark the BTree cell overflow cache as invalid whenever the rowid goes invalid.
FossilOrigin-Name: 74c9e19c92c887012aebbe96450f6ed7a60ba22d6e3edbaa39a0f989fb7f2901
Diffstat (limited to 'src')
-rw-r--r-- | src/btree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/btree.c b/src/btree.c index ddfa3c63f..e957ccb19 100644 --- a/src/btree.c +++ b/src/btree.c @@ -9521,7 +9521,7 @@ int sqlite3BtreeInsert( }else if( loc<0 && pPage->nCell>0 ){ assert( pPage->leaf ); idx = ++pCur->ix; - pCur->curFlags &= ~BTCF_ValidNKey; + pCur->curFlags &= ~(BTCF_ValidNKey|BTCF_ValidOvfl); }else{ assert( pPage->leaf ); } @@ -9551,7 +9551,7 @@ int sqlite3BtreeInsert( */ if( pPage->nOverflow ){ assert( rc==SQLITE_OK ); - pCur->curFlags &= ~(BTCF_ValidNKey); + pCur->curFlags &= ~(BTCF_ValidNKey|BTCF_ValidOvfl); rc = balance(pCur); /* Must make sure nOverflow is reset to zero even if the balance() |