8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 08:03:04 +01:00

Port forward fix for bug CORE-3610 : Can insert DUPLICATE keys in UNIQUE index

This commit is contained in:
hvlad 2011-09-29 12:34:07 +00:00
parent 284f68e581
commit fb36296224

View File

@ -2162,11 +2162,13 @@ bool VIO_get_current(thread_db* tdbb,
if (rpb->rpb_flags & rpb_deleted)
return !foreign_key;
if (rpb->rpb_flags & rpb_uk_modified)
return !foreign_key;
if (foreign_key)
{
// clear lock error from status vector
fb_utils::init_status(tdbb->tdbb_status_vector);
return !(rpb->rpb_flags & rpb_uk_modified);
}
return true;
case tra_dead: