mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-18 10:21:03 +03:00
Change an unreachable branch in the virtual table query planner into
an assert(). FossilOrigin-Name: 73b97b9ec3c39ab2828ae6353b5d7e04a27996c9
This commit is contained in:
@@ -2810,10 +2810,9 @@ static int whereLoopAddVirtualOne(
|
||||
|
||||
/* Initialize the output fields of the sqlite3_index_info structure */
|
||||
memset(pUsage, 0, sizeof(pUsage[0])*nConstraint);
|
||||
if( pIdxInfo->needToFreeIdxStr ) sqlite3_free(pIdxInfo->idxStr);
|
||||
assert( pIdxInfo->needToFreeIdxStr==0 );
|
||||
pIdxInfo->idxStr = 0;
|
||||
pIdxInfo->idxNum = 0;
|
||||
pIdxInfo->needToFreeIdxStr = 0;
|
||||
pIdxInfo->orderByConsumed = 0;
|
||||
pIdxInfo->estimatedCost = SQLITE_BIG_DBL / (double)2;
|
||||
pIdxInfo->estimatedRows = 25;
|
||||
|
||||
Reference in New Issue
Block a user