27.12.2012 Views

Oracle® Rdb Data Provider for .NET - Downloads - Oracle

Oracle® Rdb Data Provider for .NET - Downloads - Oracle

Oracle® Rdb Data Provider for .NET - Downloads - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Fixed<br />

BeginTransaction(String)<br />

This has now been fixed. If the <strong>Rdb</strong>Connection has been set ReadOnly:<br />

build 20081202.<br />

BeginTransaction() – will now start a READ ONLY transaction<br />

BeginTransaction(IsolationType) – will raise an exception as READ WRITE transactions<br />

are not supported within a ReadOnly connection<br />

BeginTransaction(String) – will raise an exception if the transaction string supplied does<br />

not start with "read only".<br />

5.6.23 Connection.State Incorrect after execution of <strong>Data</strong>Reader on<br />

Stored Procedure.<br />

Fixed<br />

▲contents<br />

When a <strong>Data</strong>Reader is executed on an <strong>Rdb</strong>Command with type CommandType.Stored<br />

Procedure, the <strong>Rdb</strong>Connection.State is incorrectly left at<br />

ConnectionState.Fetching.<br />

Subsequent operations on the connection may result in the following exception:<br />

System.InvalidOperationException:<br />

Operation is not valid due to the current state of the object.<br />

Example<br />

// C#<br />

.<br />

.<br />

.<br />

<strong>Rdb</strong>Command cmd = new <strong>Rdb</strong>Command(conn);<br />

<strong>Rdb</strong>Transaction txn = conn.BeginTransaction();<br />

cmd.CommandType = CommandType.StoredProcedure;<br />

cmd.CommandText ="testParam2";<br />

<strong>Rdb</strong>CommandBuilder.DeriveParameters(cmd);<br />

I<strong>Data</strong>Reader reader = cmd.ExecuteReader();<br />

while (reader.Read())<br />

{<br />

.<br />

.<br />

.<br />

}<br />

txn.Rollback() //� exception may be thrown here<br />

build 20090102.<br />

38

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!