Precompilers and OCI (MOSC)

MOSC Banner

OCIStmtFetch2 and OCI_ATTR_PREFETCH_ROWS

edited Dec 5, 2011 6:49AM in Precompilers and OCI (MOSC) 3 commentsAnswered
 Hello, 
"Precompilers and OCI" is the only community's title that has "OCI" keyword in it so I think I should post my question here.

Looking at the doc and the comments in the ociap.h file, it is not clear to me that using OCI_ATTR_PREFETCH_ROWS will have precedence over nrows in OCIStmtFetch2 calls for SELECT statements.

sword OCIStmtFetch2 ( OCIStmt     *stmtp,
                   OCIError    *errhp, 
                   ub4         nrows,
                   ub2         orientation,
                   ub4         scrollOffset,
                   ub4         mode);

Apart from the OCIStmtExecute that will already fetch "iters" rows ( right ?), 
will I get 2 rows (I understood it is already defaulting to 1 row + 1 prefetch) or 100 rows if I am in the following case for a SELECT statement :

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center