MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / checkRecordUpdated

Method checkRecordUpdated

src/dsql/StmtNodes.cpp:5337–5350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5335}
5336
5337void ForNode::checkRecordUpdated(thread_db* tdbb, Request* request, record_param* rpb) const
5338{
5339 jrd_rel* relation = rpb->rpb_relation;
5340 if (!(marks & MARK_MERGE) || relation->isVirtual() || relation->rel_file || relation->rel_view_rse)
5341 return;
5342
5343 ImpureMerge* impure = request->getImpure<ImpureMerge>(impureOffset);
5344
5345 if (!impure->recUpdated)
5346 return;
5347
5348 if (impure->recUpdated->test(rpb->rpb_number.getValue()))
5349 Arg::Gds(isc_merge_dup_update).raise();
5350}
5351
5352void ForNode::setRecordUpdated(thread_db* tdbb, Request* request, record_param* rpb) const
5353{

Callers 2

eraseMethod · 0.80
modifyMethod · 0.80

Calls 5

GdsClass · 0.85
isVirtualMethod · 0.80
testMethod · 0.45
getValueMethod · 0.45
raiseMethod · 0.45

Tested by

no test coverage detected