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

Method prepare

src/jrd/jrd.cpp:3731–3766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3729
3730
3731void JTransaction::prepare(CheckStatusWrapper* user_status, unsigned int msg_length, const unsigned char* msg)
3732{
3733/**************************************
3734 *
3735 * g d s _ $ p r e p a r e
3736 *
3737 **************************************
3738 *
3739 * Functional description
3740 * Prepare a transaction for commit. First phase of a two
3741 * phase commit.
3742 *
3743 **************************************/
3744 try
3745 {
3746 EngineContextHolder tdbb(user_status, this, FB_FUNCTION);
3747 check_database(tdbb);
3748
3749 try
3750 {
3751 prepare_tra(tdbb, getHandle(), msg_length, msg);
3752 }
3753 catch (const Exception& ex)
3754 {
3755 transliterateException(tdbb, ex, user_status, "JTransaction::prepare");
3756 return;
3757 }
3758 }
3759 catch (const Exception& ex)
3760 {
3761 ex.stuffException(user_status);
3762 return;
3763 }
3764
3765 successful_completion(user_status);
3766}
3767
3768
3769void JBlob::putSegment(CheckStatusWrapper* user_status, unsigned int buffer_length, const void* buffer)

Callers 6

BurpSqlMethod · 0.45
prepareRequestFunction · 0.45
executeMethod · 0.45
TRA_prepareFunction · 0.45
flushMethod · 0.45
loadMetadataMethod · 0.45

Calls 12

check_databaseFunction · 0.85
prepare_traFunction · 0.85
transliterateExceptionFunction · 0.85
successful_completionFunction · 0.85
validateHandleFunction · 0.85
DSQL_prepareFunction · 0.85
JStatementClass · 0.85
trace_warningFunction · 0.85
DSQL_free_statementFunction · 0.85
stuffExceptionMethod · 0.45
getHandleMethod · 0.45
addRefMethod · 0.45

Tested by

no test coverage detected