Skip to content

Commit

Permalink
Fixed bug CORE-2448 : Not all dependencies is created at restore
Browse files Browse the repository at this point in the history
  • Loading branch information
hvlad committed May 4, 2009
1 parent c23c67e commit 0725600
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/jrd/dfw.epp
Expand Up @@ -4413,6 +4413,13 @@ static bool make_version(thread_db* tdbb, SSHORT phase, DeferredWork* work,
if (!RFR.RDB$FIELD_ID.NULL && RFR.RDB$FIELD_ID >= REL.RDB$FIELD_ID)
REL.RDB$FIELD_ID = RFR.RDB$FIELD_ID + 1;

// force recalculation of RDB$UPDATE_FLAG if field is calculated
if (!FLD.RDB$COMPUTED_BLR.isEmpty())
{
RFR.RDB$UPDATE_FLAG.NULL = TRUE;
computed_field = true;
}

if (RFR.RDB$FIELD_ID.NULL || RFR.RDB$UPDATE_FLAG.NULL)
{
MODIFY RFR USING
Expand Down Expand Up @@ -4442,7 +4449,6 @@ static bool make_version(thread_db* tdbb, SSHORT phase, DeferredWork* work,
if (!FLD.RDB$COMPUTED_BLR.isEmpty())
{
RFR.RDB$UPDATE_FLAG = 0;
computed_field = true;
}
if (!null_view && REL.RDB$DBKEY_LENGTH > 8)
{
Expand Down

0 comments on commit 0725600

Please sign in to comment.