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

Fix PRAGMA integrity_check so that it works with a UNIQUE index over

expressions.

FossilOrigin-Name: 113181cec4db418b07640d6b1967923992efd71a
This commit is contained in:
drh
2015-09-25 20:49:16 +00:00
parent 2679f14fd9
commit 68391acd5f
4 changed files with 27 additions and 11 deletions

View File

@@ -1524,8 +1524,8 @@ void sqlite3Pragma(
int kk;
for(kk=0; kk<pIdx->nKeyCol; kk++){
int iCol = pIdx->aiColumn[kk];
assert( iCol>=0 && iCol<pTab->nCol );
if( pTab->aCol[iCol].notNull ) continue;
assert( iCol!=(-1) && iCol<pTab->nCol );
if( iCol>=0 && pTab->aCol[iCol].notNull ) continue;
sqlite3VdbeAddOp2(v, OP_IsNull, r1+kk, uniqOk);
VdbeCoverage(v);
}