aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2016-04-16 15:03:20 +0000
committerdan <dan@noemail.net>2016-04-16 15:03:20 +0000
commitee65eea4af7d4eec9f0c17d39236faffcb10678c (patch)
treebf723b78cc2b05c43706ffdefb4279fee7eac30e /src/expr.c
parentf89157653a8a4586b2498cc6b8f64cd8896e1e9f (diff)
downloadsqlite-ee65eea4af7d4eec9f0c17d39236faffcb10678c.tar.gz
sqlite-ee65eea4af7d4eec9f0c17d39236faffcb10678c.zip
Fix a couple of assert() statements that were failing with OOM error tests.
FossilOrigin-Name: 8eb3d7d8360530f364bbbebac53e1f0e6753d924
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c
index 094a454ab..9e3b664e8 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -2360,7 +2360,7 @@ static void cacheEntryClear(Parse *pParse, struct yColCache *p){
}
p->iReg = 0;
pParse->nColCache--;
- assert( cacheIsValid(pParse) );
+ assert( pParse->db->mallocFailed || cacheIsValid(pParse) );
}
@@ -2405,7 +2405,7 @@ void sqlite3ExprCacheStore(Parse *pParse, int iTab, int iCol, int iReg){
p->tempReg = 0;
p->lru = pParse->iCacheCnt++;
pParse->nColCache++;
- assert( cacheIsValid(pParse) );
+ assert( pParse->db->mallocFailed || cacheIsValid(pParse) );
return;
}
}