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

Function API_ROUTINE isc_rollback_transaction

src/yvalve/why.cpp:3345–3364  ·  view source on GitHub ↗

Abort a transaction.

Source from the content-addressed store, hash-verified

3343
3344// Abort a transaction.
3345ISC_STATUS API_ROUTINE isc_rollback_transaction(ISC_STATUS* userStatus, isc_tr_handle* traHandle)
3346{
3347 StatusVector status(userStatus);
3348 CheckStatusWrapper statusWrapper(&status);
3349
3350 try
3351 {
3352 RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
3353 transaction->rollback(&statusWrapper);
3354
3355 if (!(status.getState() & IStatus::STATE_ERRORS))
3356 *traHandle = 0;
3357 }
3358 catch (const Exception& e)
3359 {
3360 e.stuffException(&statusWrapper);
3361 }
3362
3363 return status[1];
3364}
3365
3366
3367// Seek a blob.

Callers

nothing calls this directly

Calls 4

translateHandleFunction · 0.85
rollbackMethod · 0.45
getStateMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected