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 |
The |
|
level |
The isolation level for the current connection |
This function returns the current isolation level for the connection.
| MCO_S_OK | The isolation level was returned successfully |
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 );
...
level = mco_trans_isolation_level(t, &level);
if ( level & MCO_REPEATABLE_READ )
{
printf("\nIsolation level is Read_Repeatable." );
}
...
}
...
}