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

Method remoteTransactionInterface

src/remote/client/interface.cpp:10058–10072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10056}
10057
10058Transaction* Attachment::remoteTransactionInterface(ITransaction* apiTra)
10059{
10060 if (!apiTra)
10061 return NULL;
10062
10063 LocalStatus ls;
10064 CheckStatusWrapper dummy(&ls);
10065 ITransaction* valid = apiTra->validate(&dummy, this);
10066 if (!valid)
10067 return NULL;
10068
10069 // If validation is successfull, this means that this attachment and valid transaction
10070 // use same provider. I.e. the following cast is safe.
10071 return static_cast<Transaction*>(valid);
10072}
10073
10074static void cleanDpb(ClumpletWriter& dpb, const ParametersSet* tags)
10075{

Callers 2

executeMethod · 0.80
openCursorMethod · 0.80

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected