MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE isc_transaction_info

Function API_ROUTINE isc_transaction_info

src/yvalve/why.cpp:3739–3758  ·  view source on GitHub ↗

Provide information on transaction object.

Source from the content-addressed store, hash-verified

3737
3738// Provide information on transaction object.
3739ISC_STATUS API_ROUTINE isc_transaction_info(ISC_STATUS* userStatus, isc_tr_handle* traHandle,
3740 SSHORT itemLength, const SCHAR* items, SSHORT bufferLength, SCHAR* buffer)
3741{
3742 StatusVector status(userStatus);
3743 CheckStatusWrapper statusWrapper(&status);
3744
3745 try
3746 {
3747 RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
3748
3749 transaction->getInfo(&statusWrapper, itemLength, reinterpret_cast<const UCHAR*>(items),
3750 bufferLength, reinterpret_cast<UCHAR*>(buffer));
3751 }
3752 catch (const Exception& e)
3753 {
3754 e.stuffException(&statusWrapper);
3755 }
3756
3757 return status[1];
3758}
3759
3760
3761// Unwind a running request. This is potentially nasty since it can be called asynchronously.

Callers

nothing calls this directly

Calls 3

translateHandleFunction · 0.85
getInfoMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected