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

Function gen_trans

src/gpre/languages/rmc.cpp:3729–3752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3727//
3728
3729static void gen_trans( const act* action)
3730{
3731 const char* tranText = action->act_object ? (const TEXT*) action->act_object : names[isc_trans_pos];
3732
3733 switch (action->act_type)
3734 {
3735 case ACT_commit_retain_context:
3736 printa(names[COLUMN], true, "CALL \"%s\" USING %s, %s",
3737 ISC_COMMIT_RETAINING, status_vector(action), tranText);
3738 break;
3739 case ACT_rollback_retain_context:
3740 printa(names[COLUMN], true, "CALL \"%s\" USING %s, %s",
3741 ISC_ROLLBACK_RETAINING, status_vector(action), tranText);
3742 break;
3743 default:
3744 printa(names[COLUMN], true, "CALL \"%s\" USING %s, %s",
3745 (action->act_type == ACT_commit) ?
3746 ISC_COMMIT_TRANSACTION : (action->act_type == ACT_rollback) ?
3747 ISC_ROLLBACK_TRANSACTION : ISC_PREPARE_TRANSACTION,
3748 status_vector(action), tranText);
3749 }
3750
3751 set_sqlcode(action);
3752}
3753
3754
3755//____________________________________________________________

Callers 1

RMC_actionFunction · 0.70

Calls 3

printaFunction · 0.70
status_vectorFunction · 0.70
set_sqlcodeFunction · 0.70

Tested by

no test coverage detected