mco_trans_get_current
Prototype
MCO_RET mco_trans_get_current (mco_db_h db, mco_trans_h* t);
Arguments
| db |
The database handle that was established by mco_db_connect() |
| t |
Address of the transaction handler |
Description
This function returns the handle to the active transaction or MCO_E_TRANS_NOT_ACTIVE if there is no active transaction for the given connection
Return Codes
| MCO_S_OK |
Handle obtained successfully |
| MCO_E_TRANS_NOT_ACTIVE |
No active transaction |
| MCO_E_INTERRUPTED |
Transaction was interrupted by timer, callback or another transaction |
Files
Header file:
mco.h
Source file:
target/mcolib/mcotrans.c
Library:
libmcolib.a