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

Temporary disable precise PK\FK constraints checking logic

This commit is contained in:
hvlad 2005-02-01 15:02:40 +00:00
parent 352d176633
commit 869f5d7420
2 changed files with 4 additions and 2 deletions

View File

@ -944,7 +944,7 @@ static IDX_E check_duplicates(
// P.S. I think the check for a status vector should be enough,
// but for sure let's keep the old one as well.
// 2003.05.27
/*
// /*
const bool lock_error =
(tdbb->tdbb_status_vector[1] == isc_deadlock ||
tdbb->tdbb_status_vector[1] == isc_lock_conflict ||
@ -955,7 +955,7 @@ static IDX_E check_duplicates(
result = idx_e_duplicate;
break;
}
*/
// */
const bool has_cur_values = !(rpb.rpb_flags & rpb_deleted);
if (!has_cur_values && !has_old_values) {
result = idx_e_duplicate;

View File

@ -1989,6 +1989,7 @@ bool VIO_get_current(
// PK is ok if PK values are not equal to old and not equal to
// new values
/*
if (!rpb->rpb_b_page)
return !foreign_key;
else if (old_rpb)
@ -2027,6 +2028,7 @@ bool VIO_get_current(
return true;
}
else
*/
return !foreign_key;
case tra_dead: