Skip to content

Commit

Permalink
More problematic cases of CORE-1798 - thanks to Dmitry
Browse files Browse the repository at this point in the history
  • Loading branch information
asfernandes committed Mar 21, 2008
1 parent d0fe52f commit 21a1365
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dsql/pass1.cpp
Expand Up @@ -4052,6 +4052,9 @@ static dsql_nod* pass1_dbkey( dsql_req* request, dsql_nod* input)
0);
}

if (context->ctx_flags & CTX_null)
return MAKE_node(nod_null, 0);

dsql_nod* node = MAKE_node(nod_dbkey, 1);
dsql_nod* rel_node = MAKE_node(nod_relation, e_rel_count);
rel_node->nod_arg[0] = (dsql_nod*) context;
Expand Down Expand Up @@ -4081,6 +4084,9 @@ static dsql_nod* pass1_dbkey( dsql_req* request, dsql_nod* input)
0);
}

if (context->ctx_flags & CTX_null)
return MAKE_node(nod_null, 0);

dsql_nod* node = MAKE_node(nod_dbkey, 1);
dsql_nod* rel_node = MAKE_node(nod_relation, e_rel_count);
rel_node->nod_arg[0] = (dsql_nod*) context;
Expand Down
3 changes: 3 additions & 0 deletions src/jrd/exe.cpp
Expand Up @@ -2989,6 +2989,9 @@ static jrd_nod* modify(thread_db* tdbb, jrd_nod* node, SSHORT which_trig)
}
}

new_rpb->rpb_number = org_rpb->rpb_number;
new_rpb->rpb_number.setValid(true);

jrd_req* trigger;
if (relation->rel_post_modify &&
which_trig != PRE_TRIG &&
Expand Down

0 comments on commit 21a1365

Please sign in to comment.