Add a missing translation from table column numbers to storage table numbers

while processing constraints on an UPDATE statement.
Ticket [9621dd78a024d07a]

FossilOrigin-Name: 361ea81ae8a13e7d2ec4c2412f30e049bb6ee320980d502c86bedc315cdd3bc0
This commit is contained in:
drh
2019-10-29 03:30:26 +00:00
parent 2c40a3eb35
commit b6d861e523
3 changed files with 8 additions and 7 deletions
+1
View File
@@ -1982,6 +1982,7 @@ void sqlite3GenerateConstraintChecks(
addrJump = addrUniqueOk;
op = OP_Eq;
}
x = sqlite3TableColumnToStorage(pTab, x);
sqlite3VdbeAddOp4(v, op,
regOldData+1+x, addrJump, regCmp+i, p4, P4_COLLSEQ
);