An issue was discovered with an update statement on a table with a unique or a primary key that caused a duplicate key error. The statement should fail with the following:
Error: -17002 Description: CT - Key value already exists in index...
Either of the following incorrect results could occur:
error(-17094): CT - Pending error - cannot save or commit tran
The issue does not affect the data because it fails. However, the error code was not properly propagated and the transaction may not be restored to the last good savepoint. The logic has been modified to correct this.