1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Improved Synopsis on register comparison operators. Fix a bug on the

constraint check generator.

FossilOrigin-Name: a7a18b65fa34dfdf6117fa21db3e576f96876617
This commit is contained in:
drh
2013-11-02 22:29:34 +00:00
parent 63f0eedf10
commit 2552d43f4c
4 changed files with 15 additions and 15 deletions

View File

@@ -1517,7 +1517,7 @@ void sqlite3GenerateConstraintChecks(
addrPkConflict, regIdx+x);
}
x = pPk->aiColumn[i];
sqlite3VdbeAddOp3(v, OP_Eq, regOldData+1+x, addrUniqueOk, regIdx+x);
sqlite3VdbeAddOp3(v, OP_Eq, regOldData+1+x, addrUniqueOk, regIdx+i);
}
}else{
/* For a UNIQUE index on a WITHOUT ROWID table, conflict only if the