ref cursor in OCI binding error
I am unable to bind the variables for a type of cursor variable. The error I get is ORA-01036: illegal variable name/number. It occurs after the OCIBindByName call
Here's the code any help would be great
[code]
//
// shows how to call a PL/SQL proc with a return of an rc
//
//
// the example uses the emp table with Scott
//
// the stored proc:
// create or replace procedure rc(rc in out sys_refcursor) is
// begin
// open rc for select empno from emp;
// end;
//
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <oci.h>