C program output variables
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 */
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 */
0