Precompilers and OCI (MOSC)

MOSC Banner

C program output variables

edited Oct 31, 2012 10:06AM in Precompilers and OCI (MOSC) 4 commentsAnswered
Hi,I am new to OCI programming. I am trying to define dynamically a list of variables for all columns

my code is as follows. Can anyone help me see what's wrong with my code?

sword define()
{
  ub2          dtype;
  text         *col_name;
  ub4          counter, col_name_len, char_semantics;
  ub2          col_width;
  sb4          parm_status;
    sword rc = 0;

    /* Request a parameter descriptor for position 1 in the select-list */
  counter = 1;
  parm_status = OCIParamGet((void *)stmthp, OCI_HTYPE_STMT, errhp,(void **)&mypard, (ub4) counter);
  /* Loop only if a descriptor was successfully retrieved for current position, starting at 1 */
  while (parm_status == OCI_SUCCESS)
    {
    /* Retrieve the datatype attribute */

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