aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2023-03-24 19:17:25 +0000
committerdrh <>2023-03-24 19:17:25 +0000
commitd23924d1ea4c9ffded38a73eb0f1b5cae52e22dc (patch)
tree87bdb41ea9179cbfa33622bfa39b757664efc933 /src
parent4a1c8ed725ba0beb1da5942dca6b332b25d79e67 (diff)
downloadsqlite-d23924d1ea4c9ffded38a73eb0f1b5cae52e22dc.tar.gz
sqlite-d23924d1ea4c9ffded38a73eb0f1b5cae52e22dc.zip
Fix a problem in cursor-hints for WITHOUT ROWID tables used in a RIGHT JOIN.
[forum:/forumpost/591006b1cc|Forum post 591006b1cc]. FossilOrigin-Name: 221fdcec964f8317b2c23e926cc23799615cd3b4239a8a9ff87a83588d05bc64
Diffstat (limited to 'src')
-rw-r--r--src/where.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c
index 9de72d76d..dd2b8b73c 100644
--- a/src/where.c
+++ b/src/where.c
@@ -6238,7 +6238,7 @@ WhereInfo *sqlite3WhereBegin(
assert( n<=pTab->nCol );
}
#ifdef SQLITE_ENABLE_CURSOR_HINTS
- if( pLoop->u.btree.pIndex!=0 ){
+ if( pLoop->u.btree.pIndex!=0 && (pTab->tabFlags & TF_WithoutRowid)==0 ){
sqlite3VdbeChangeP5(v, OPFLAG_SEEKEQ|bFordelete);
}else
#endif