Menu

#489 [ODBC] OdbcConnection.BeginTransaction failed with IsolationLevel Snapshot

open
nobody
None
5
2013-04-26
2013-04-26
Jira Trac
No

* Brief:
** An ObdcException is thrown if execute OdbcConnection BeginTransaction(IsolationLevel) with parameter 'IsolationLevel.Snapshot'

* Test Code:
{noformat}
[Test, Description(Test for OdbcConnection BeginTransaction with IsolationLevel.Snapshot.)]
public void ConnectMethod_BeginTransaction_Snapshot()
{
string strConn = Driver={CUBRID Driver};db_name=odbc_test;uid=dba;server=10.34.64.57;port=33037;fetch_size=100;
OdbcConnection connCubrid = new OdbcConnection(strConn);
connCubrid.Open();
OdbcTransaction transaction = connCubrid.BeginTransaction(IsolationLevel.Snapshot);
Assert.AreEqual(connCubrid, transaction.Connection);
transaction.Dispose();
}

{noformat}

Discussion