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

Function API_ROUTINE isc_commit_transaction

src/yvalve/why.cpp:1839–1858  ·  view source on GitHub ↗

Commit a transaction.

Source from the content-addressed store, hash-verified

1837
1838// Commit a transaction.
1839ISC_STATUS API_ROUTINE isc_commit_transaction(ISC_STATUS* userStatus, isc_tr_handle* traHandle)
1840{
1841 StatusVector status(userStatus);
1842 CheckStatusWrapper statusWrapper(&status);
1843
1844 try
1845 {
1846 RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
1847 transaction->commit(&statusWrapper);
1848
1849 if (!(status.getState() & IStatus::STATE_ERRORS))
1850 *traHandle = 0;
1851 }
1852 catch (const Exception& e)
1853 {
1854 e.stuffException(&statusWrapper);
1855 }
1856
1857 return status[1];
1858}
1859
1860
1861// Do a commit retaining.

Callers

nothing calls this directly

Calls 4

translateHandleFunction · 0.85
commitMethod · 0.45
getStateMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected