aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordan <Dan Kennedy>2021-08-30 17:02:48 +0000
committerdan <Dan Kennedy>2021-08-30 17:02:48 +0000
commitbeed24d57e9b0a622d66f54e612f83281b9cef22 (patch)
treec3a5c2b46792349d105f8e2846ce4bdd4f00abfb /src/wherecode.c
parent6d77a2948e86f8975c1e2ff63580dc9dcc806ee4 (diff)
downloadsqlite-beed24d57e9b0a622d66f54e612f83281b9cef22.tar.gz
sqlite-beed24d57e9b0a622d66f54e612f83281b9cef22.zip
Do not disable a rowid=? term used to drive an IPK index if it is a transitive constraint.
FossilOrigin-Name: 46e28cbcf6044b36aa4ddcda09adb49a46c6c6a8d41d558467ede3091304aa8c
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index 28b417c9a..5d9bed27c 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -1500,9 +1500,6 @@ Bitmask sqlite3WhereCodeOneLoopStart(
sqlite3VdbeAddOp3(v, OP_SeekRowid, iCur, addrNxt, iRowidReg);
VdbeCoverage(v);
pLevel->op = OP_Noop;
- if( (pTerm->prereqAll & pLevel->notReady)==0 ){
- pTerm->wtFlags |= TERM_CODED;
- }
}else if( (pLoop->wsFlags & WHERE_IPK)!=0
&& (pLoop->wsFlags & WHERE_COLUMN_RANGE)!=0
){