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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Fixed<br />

In an attempt to minimize this problem the naming of "un-named" parameters has now been<br />

changed to:<br />

ORDPPARAM<br />

build 20080527.<br />

5.6.11 FetchSize is not Correctly Set <strong>for</strong> <strong>Rdb</strong>Commands Containing<br />

Input or Output Parameters.<br />

Fixed<br />

During the internal preparation of the SQL statement associated with an <strong>Rdb</strong>Command the<br />

<strong>Rdb</strong>Connection FetchSize is copied to the newly prepared statement and it is this value that is<br />

used in subsequent executions of the statement to determine the number of records that should be<br />

passed between the client and the server process <strong>for</strong> each network IO.<br />

A problem in how the FetchSize value is determined may prevent the correct FetchSize being set<br />

<strong>for</strong> the statement if the <strong>Rdb</strong>Command contains any <strong>Rdb</strong>Parameters.<br />

For example:<br />

// C#<br />

<strong>Rdb</strong>Connection db = new <strong>Rdb</strong>Connection (ConnectionString);<br />

db.Open();<br />

<strong>Rdb</strong>Command cmd = new <strong>Rdb</strong>Command(<br />

"select * from t1 where f1 = :VAL1", db);<br />

db.FetchSize = 1;<br />

will NOT set the FetchSize correctly and multiple records may still be returned during a single<br />

Network IO.<br />

This problem has now been fixed.<br />

build 20080602.<br />

5.6.12 Default FetchSize May be Set Incorrectly.<br />

If not explicitly set, ORDP is documented to use a default FetchSize of 100 <strong>for</strong> both the<br />

<strong>Rdb</strong>Command and <strong>Rdb</strong><strong>Data</strong>Reader classes.<br />

However a problem in how the default value is determined causes ORDP to set the default<br />

FetchSize to 1 in certain circumstances.<br />

If the <strong>Rdb</strong>Command is instantiated and the CommandText property set prior to the associated<br />

<strong>Rdb</strong>Connection being Open, ORDP will default the <strong>Rdb</strong>Command FetchSize to 1.<br />

The following example shows the type of code that will show this problem:<br />

32

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

Saved successfully!

Ooh no, something went wrong!