1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-16 23:02:26 +03:00

Remove an unnecessary conditional from the index builder.

FossilOrigin-Name: 87e5f5a6c60e37e943b3ce80617e81b09852515e
This commit is contained in:
drh
2016-04-05 14:01:34 +00:00
parent 1c715f67b9
commit 868f0398e4
3 changed files with 8 additions and 8 deletions

View File

@@ -2786,7 +2786,7 @@ static void sqlite3RefillIndex(Parse *pParse, Index *pIndex, int memRootPage){
addr1 = sqlite3VdbeAddOp2(v, OP_SorterSort, iSorter, 0); VdbeCoverage(v);
assert( pKey!=0 || db->mallocFailed || pParse->nErr );
if( IsUniqueIndex(pIndex) && pKey!=0 ){
if( IsUniqueIndex(pIndex) /*&& pKey!=0*/ ){
int j2 = sqlite3VdbeCurrentAddr(v) + 3;
sqlite3VdbeGoto(v, j2);
addr2 = sqlite3VdbeCurrentAddr(v);