aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <Dan Kennedy>2024-08-29 16:27:57 +0000
committerdan <Dan Kennedy>2024-08-29 16:27:57 +0000
commitccd34894e1a9e7895004867c3f3f4d0897b0dc30 (patch)
treed20470692ca3921c4e16b2f418cbc3d82cd4f641 /src
parentc1547d1f7acfdf7502f743529c6c9a1b7aefcf60 (diff)
downloadsqlite-ccd34894e1a9e7895004867c3f3f4d0897b0dc30.tar.gz
sqlite-ccd34894e1a9e7895004867c3f3f4d0897b0dc30.zip
Fix a case where the BTCF_AtLast flag was being left set incorrectly. This was causing obscure window function queries to fail.
FossilOrigin-Name: e042eb024738a83eed92cd2dfac3d2a50d2589715a3d81b1a494564dd7d8e7fa
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 c752b0771..f985ce340 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -5989,7 +5989,7 @@ int sqlite3BtreeIndexMoveto(
&& indexCellCompare(pCur, 0, pIdxKey, xRecordCompare)<=0
&& pIdxKey->errCode==SQLITE_OK
){
- pCur->curFlags &= ~BTCF_ValidOvfl;
+ pCur->curFlags &= ~(BTCF_ValidOvfl|BTCF_AtLast);
if( !pCur->pPage->isInit ){
return SQLITE_CORRUPT_BKPT;
}