| 3727 | // |
| 3728 | |
| 3729 | static 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 | //____________________________________________________________ |
no test coverage detected