i am struggling to read a VARRAY element from oracle 11g database. i am using CPP occi DLL. i can read any other types, and update VARRAY type, but when i try to select VARRAY value, i get an 'access violation' exception in the occi dll :(
here is a simplified scenario:
CREATE TYPE ALIST AS VARRAY(50) OF NUMBER(8)
create table ATABLE (a nmumber(8), b mylist)
insert into mytable values(1, alist(1,2,3))
when i do
oc::Statement* stmt = m_cConnection->createStatement("SELECT b FROM ATABLE");
stmt->executeQuery();
it's OK but when i try to access the VARRAY the same way
oc::Statement* stmt = m_cConnection->createStatement("SELECT a FROM ATABLE");
stmt->executeQuery();
i get
First-chance exception at 0x0094a46d in OracleTester.exe: 0xC0000005: Access violation reading location 0x0000000000000120.
any idea what i am doing wrong? maybe i need to use different API to get VARRAY data ? or do some preparations?
any hint will be appreciated...