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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user