aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <>2022-01-24 16:47:12 +0000
committerdrh <>2022-01-24 16:47:12 +0000
commit0c7d3d399d4706db18789dbd50466e4d589e5fcd (patch)
tree8af14619211686909126dc8521403bb24562f389 /src/expr.c
parentc692df2784db52587fdf2a2ae20340ad8e7fc034 (diff)
downloadsqlite-0c7d3d399d4706db18789dbd50466e4d589e5fcd.tar.gz
sqlite-0c7d3d399d4706db18789dbd50466e4d589e5fcd.zip
Remove many redundant checks for sqlite3.mallocFailed now that any OOM should
cause Parse.nErr to be non-zero. FossilOrigin-Name: 1f7fa46126ea33ed30e93186aff3df51068aeb4be6f79a102bfe8c4e44941d71
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c
index a51d37a7b..07e81d299 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -2803,8 +2803,7 @@ int sqlite3FindInIndex(
CollSeq *pReq = sqlite3BinaryCompareCollSeq(pParse, pLhs, pRhs);
int j;
- assert( pReq!=0 || pRhs->iColumn==XN_ROWID
- || pParse->nErr || db->mallocFailed );
+ assert( pReq!=0 || pRhs->iColumn==XN_ROWID || pParse->nErr );
for(j=0; j<nExpr; j++){
if( pIdx->aiColumn[j]!=pRhs->iColumn ) continue;
assert( pIdx->azColl[j] );