diff options
author | dan <Dan Kennedy> | 2023-09-23 18:52:22 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2023-09-23 18:52:22 +0000 |
commit | c18c7523a472ea42f8b386a1a4a85cbed3c7f825 (patch) | |
tree | 7c683eb319fd742449bf033e2a2ec0e6d0591c35 /src | |
parent | 9f811a35b85203791f8f139748e96daa935a8a72 (diff) | |
download | sqlite-c18c7523a472ea42f8b386a1a4a85cbed3c7f825.tar.gz sqlite-c18c7523a472ea42f8b386a1a4a85cbed3c7f825.zip |
Fix a failing assert() caused by changes on this branch.
FossilOrigin-Name: d0e21f20bd8643d21c4b88fb75b83939d68e9b7118f7289a164656f11d2ee555
Diffstat (limited to 'src')
-rw-r--r-- | src/build.c | 1 | ||||
-rw-r--r-- | src/where.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/build.c b/src/build.c index 2f672653e..b3e963974 100644 --- a/src/build.c +++ b/src/build.c @@ -4277,6 +4277,7 @@ void sqlite3CreateIndex( assert( HasRowid(pTab) || pTab->iPKey<0 || sqlite3TableColumnToIndex(pIndex, pTab->iPKey)>=0 ); recomputeColumnsNotIndexed(pParse, pIndex); + if( pParse->nErr ) goto exit_create_index; if( pTblName!=0 && pIndex->nColumn>=pTab->nCol ){ pIndex->isCovering = 1; for(j=0; j<pTab->nCol; j++){ diff --git a/src/where.c b/src/where.c index 2dd40025a..65f7f5acd 100644 --- a/src/where.c +++ b/src/where.c @@ -1149,6 +1149,7 @@ static SQLITE_NOINLINE void sqlite3ConstructBloomFilter( assert( pLoop!=0 ); assert( v!=0 ); assert( pLoop->wsFlags & WHERE_BLOOMFILTER ); + assert( (pLoop->wsFlags & WHERE_IDX_ONLY)==0 ); addrOnce = sqlite3VdbeAddOp0(v, OP_Once); VdbeCoverage(v); do{ |