diff options
author | dan <Dan Kennedy> | 2023-09-26 19:26:47 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2023-09-26 19:26:47 +0000 |
commit | 1c67749166f1452ab6324b9c57a78d8eff354d24 (patch) | |
tree | db3688ebed5ba2f434983f107ee19485fd198b7a /src | |
parent | a6e72026775a59ea8ab80d2ab7a4ed943343b7c2 (diff) | |
download | sqlite-1c67749166f1452ab6324b9c57a78d8eff354d24.tar.gz sqlite-1c67749166f1452ab6324b9c57a78d8eff354d24.zip |
Remove a NEVER() from a condition in the partial-index constant value optimization that can sometimes be true.
FossilOrigin-Name: 63aea8c3e0605edcf49ad1e5ce1a56d2690dcb8c4857043997545daab46ca035
Diffstat (limited to 'src')
-rw-r--r-- | src/where.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c index 0b516a672..8e2c12818 100644 --- a/src/where.c +++ b/src/where.c @@ -3568,7 +3568,7 @@ static void wherePartIdxExpr( if( pLeft->op!=TK_COLUMN ) return; if( !sqlite3ExprIsConstant(pRight) ) return; if( !sqlite3IsBinary(sqlite3ExprCompareCollSeq(pParse, pPart)) ) return; - if( NEVER(pLeft->iColumn<0) ) return; + if( pLeft->iColumn<0 ) return; aff = pIdx->pTable->aCol[pLeft->iColumn].affinity; if( aff>=SQLITE_AFF_TEXT ){ if( pItem ){ |