Skip to content

Commit

Permalink
Fixed CORE-1073.
Browse files Browse the repository at this point in the history
  • Loading branch information
dyemanov committed Dec 30, 2006
1 parent 6c548ac commit 5320dae
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/jrd/evl.cpp
Expand Up @@ -743,10 +743,7 @@ bool EVL_boolean(thread_db* tdbb, jrd_nod* node)
{
/* An invariant node has already been computed. */

if (*invariant_flags & VLU_null)
request->req_flags |= req_null;
else
request->req_flags &= ~req_null;
request->req_flags &= ~req_null;
return impure->vlu_misc.vlu_short != 0;
}
}
Expand All @@ -759,15 +756,13 @@ bool EVL_boolean(thread_db* tdbb, jrd_nod* node)
value = !RSE_get_record(tdbb, urs, g_RSE_get_mode);
}
RSE_close(tdbb, urs);
request->req_flags &= ~req_null;

/* If this is an invariant node, save the return value. */

if (node->nod_flags & nod_invariant)
{
*invariant_flags |= VLU_computed;
if (request->req_flags & req_null) {
*invariant_flags |= VLU_null;
}
impure->vlu_misc.vlu_short = value ? TRUE : FALSE;
}
return value;
Expand Down

0 comments on commit 5320dae

Please sign in to comment.