Return the current isolation level for the connection.
MCO_RET mco_trans_isolation_level(mco_trans_h t, MCO_TRANS_ISOLATION_LEVEL* isolation_level);
t
mco_trans_h transaction handle returned by mco_trans_start().isolation_level
MCO_TRANS_ISOLATION_LEVEL to receive the isolation level for the current connection.This function returns the current isolation level for the connection.
MCO_S_OK
Application snippet:
const char * dbname = "SimpleDb";
int main(int argc, char* argv[])
{
mco_db_h db;
MCO_RET rc;
mco_device_t dev;
mco_db_params_t db_params;
mco_trans_h t;
MCO_TRANS_ISOLATION_LEVEL level;
...
rc = mco_db_open_dev( dbname, simple_get_dictionary(), &dev, 1, &db_params );
if ( MCO_S_OK != rc )
{
rc = mco_db_connect( dbname, &db );
...
rc = mco_trans_isolation_level(t, &level);
if ( level & MCO_REPEATABLE_READ )
{
printf("\nIsolation level is Read_Repeatable." );
}
...
}
...
}