For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > September 2005 > oracle complex type and oci_new_collection









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author oracle complex type and oci_new_collection
Hal McFarlane

2005-09-28, 6:57 pm

Is it possible to use a complex collection in PHP as shown below?
Oci_new_collection is successful, but the OCI-Collection->getElem(i)
returns false for each record returned. If we change from a complex type
to a simple type, the data returns as expected.

-----------------------------------------------------------------------------------------------------------------------------
-- COMPLEX TYPE
-----------------------------------------------------------------------------------------------------------------------------
create or replace type aud_cl_clu_row
as object
(
channel_line_up varchar2(50),
audit_status varchar2(20)
);

create or replace type aud_cl_clu_tbl is table of aud_cl_clu_row;

-----------------------------------------------------------------------------------------------------------------------------
-- SIMPLE TYPE
-----------------------------------------------------------------------------------------------------------------------------
create or replace type aud_cl_clu_tbl is table of varchar2(50);
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com