1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Replace a faulty assert() with a testcase() to assure the condition is

tested.

FossilOrigin-Name: a49bc0a8244feb08b83e716d81c2a9512c184539
This commit is contained in:
drh
2016-09-16 15:42:17 +00:00
parent 4313f045c2
commit 72d5003ed8
3 changed files with 8 additions and 8 deletions

View File

@ -528,7 +528,7 @@ static int codeEqualityTerm(
int iOut = iReg;
if( pLoop->aLTerm[i]->pExpr==pX ){
if( eType==IN_INDEX_ROWID ){
assert( nEq==1 && i==iEq );
testcase( nEq>1 ); /* Happens with a UNIQUE index on ROWID */
pIn->addrInTop = sqlite3VdbeAddOp2(v, OP_Rowid, iTab, iReg);
}else{
int iCol = aiMap ? aiMap[iMap++] : 0;