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

Function gen_trans

src/gpre/obj_cxx.cpp:3443–3465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3441//
3442
3443static void gen_trans( const act* action, int column)
3444{
3445 const char* tranText =
3446 action->act_object ? (const TEXT*) action->act_object : gpreGlob.transaction_name;
3447
3448 switch (action->act_type)
3449 {
3450 case ACT_commit_retain_context:
3451 case ACT_rollback_retain_context:
3452 printa(column, "%s->%sRetaining (%s);", tranText,
3453 action->act_type == ACT_commit_retain_context ? "commit" : "rollback",
3454 status_vector(action));
3455 break;
3456 default:
3457 printa(column, "%s->%s(%s);", tranText,
3458 (action->act_type == ACT_commit) ?
3459 "commit" : (action->act_type == ACT_rollback) ? "rollback" : "prepare",
3460 status_vector(action));
3461 success(column, true, status_vector(action));
3462 printa(column + INDENT, "%s = 0;", tranText);
3463 break;
3464 }
3465}
3466
3467
3468//____________________________________________________________

Callers 1

OBJ_CXX_actionFunction · 0.70

Calls 3

successFunction · 0.85
printaFunction · 0.70
status_vectorFunction · 0.70

Tested by

no test coverage detected