mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 07:23:04 +01:00
Port forward fix for bug CORE-3610 : Can insert DUPLICATE keys in UNIQUE index
This commit is contained in:
parent
284f68e581
commit
fb36296224
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user