aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-09-16 15:42:17 +0000
committerdrh <drh@noemail.net>2016-09-16 15:42:17 +0000
commit72d5003ed84567b84589f1ea0807d25275fe9e4d (patch)
tree9802ee487c74972e1c6d640c00828e88033a08a0 /src/wherecode.c
parent4313f045c2a473dcd5cee1adc4475db1a2181bfc (diff)
downloadsqlite-72d5003ed84567b84589f1ea0807d25275fe9e4d.tar.gz
sqlite-72d5003ed84567b84589f1ea0807d25275fe9e4d.zip
Replace a faulty assert() with a testcase() to assure the condition is
tested. FossilOrigin-Name: a49bc0a8244feb08b83e716d81c2a9512c184539
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index c440c56de..c4ce2024c 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -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;