1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-19 21:43:15 +03:00

Better determination of when an index is UNIQUE.

FossilOrigin-Name: 63fd025ad98c33826342824c51436ac92e2bb579
This commit is contained in:
drh
2013-06-04 13:37:26 +00:00
parent 73843cac73
commit ee73b87181
3 changed files with 9 additions and 9 deletions

View File

@@ -4024,7 +4024,7 @@ static int whereLoopAddBtreeIndex(
|| nInMul==1 );
pNew->wsFlags |= WHERE_COLUMN_EQ;
if( iCol<0
|| (pProbe->onError==OE_Abort && nInMul==1
|| (pProbe->onError!=OE_None && nInMul==1
&& pNew->u.btree.nEq==pProbe->nColumn-1)
){
testcase( pNew->wsFlags & WHERE_COLUMN_IN );
@@ -4721,7 +4721,7 @@ static int wherePathSatisfiesOrderBy(
}
}else{
/* No match found */
if( j<nColumn || pIndex==0 || pIndex->onError!=OE_Abort ){
if( j<nColumn || pIndex==0 || pIndex->onError==OE_None ){
isWellOrdered = 0;
}
break;