Precompilers and OCI (MOSC)

MOSC Banner

is OCIDefineArrayOfStruct() needed for each subsequent OCIDefineByPos() ?

edited Nov 10, 2010 9:44PM in Precompilers and OCI (MOSC) 7 commentsAnswered
Hello,
According to my application logic, I change the DEFINE addresses between each FETCH. do I have to call OCIDefineArrayOfStruct() after each OCIDefineByPos() ?

Here is the pseudo code:

OCIDefineByPos();
OCIDefineArrayOfStruct();

while (OCIStmtFetch2()==OCI_SUCCESS)
 {
.....
OCIDefineByPos();
.....
 }

as seen above, I call it just one time before the first FECTH and it works. But, I need a confirmation.

thanks in advance...

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