File tree 1 file changed +4
-1
lines changed
modules/javafx.web/src/main/native/Source/ThirdParty/sqlite
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -105489,7 +105489,9 @@ static void decodeIntArray(
105489
105489
if( sqlite3_strglob("unordered*", z)==0 ){
105490
105490
pIndex->bUnordered = 1;
105491
105491
}else if( sqlite3_strglob("sz=[0-9]*", z)==0 ){
105492
- pIndex->szIdxRow = sqlite3LogEst(sqlite3Atoi(z+3));
105492
+ int sz = sqlite3Atoi(z+3);
105493
+ if( sz<2 ) sz = 2;
105494
+ pIndex->szIdxRow = sqlite3LogEst(sz);
105493
105495
}else if( sqlite3_strglob("noskipscan*", z)==0 ){
105494
105496
pIndex->noSkipScan = 1;
105495
105497
}
@@ -142704,6 +142706,7 @@ static int whereLoopAddBtreeIndex(
142704
142706
** it to pNew->rRun, which is currently set to the cost of the index
142705
142707
** seek only. Then, if this is a non-covering index, add the cost of
142706
142708
** visiting the rows in the main table. */
142709
+ assert( pSrc->pTab->szTabRow>0 );
142707
142710
rCostIdx = pNew->nOut + 1 + (15*pProbe->szIdxRow)/pSrc->pTab->szTabRow;
142708
142711
pNew->rRun = sqlite3LogEstAdd(rLogSize, rCostIdx);
142709
142712
if( (pNew->wsFlags & (WHERE_IDX_ONLY|WHERE_IPK))==0 ){
You can’t perform that action at this time.
0 commit comments