ID:               38791
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ces dot fci at gmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         OCI8 related
 Operating System: any
 PHP Version:      5.1.6
-Assigned To:      
+Assigned To:      tony2001


Previous Comments:
------------------------------------------------------------------------

[2006-09-12 14:39:13] ces dot fci at gmail dot com

Description:
------------
I am trying to use oci_new_collection but I have not yet had any
success.  I have only been able to test it up to PHP 5.1.4.  I found a
post on Google Groups that suggests "it works only for VARRAY
types"(Mladen Gogala).

Reproduce code:
---------------
$dbh = oci_connect('apps', '..', "(DESCRIPTION =  (ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = ..)(Port = 1522))) (CONNECT_DATA
=(SID = test)))");

oci_new_collection($dbh, 'HZ_PARTY_SEARCH.CONTACT_POINT_LIST',
'APPS');


In PL/SQL the collection is declared as:
TYPE contact_point_list IS TABLE OF contact_point_search_rec_type
     INDEX BY BINARY_INTEGER;

TYPE contact_point_search_rec_type IS RECORD (
   CONTACT_POINT_TYPE           VARCHAR2(30)    -- HZ_CONTACT_POINTS
  ,CPT_SOURCE_SYSTEM_REF        VARCHAR2(4000)  -- CUSTOM
  ,TELEPHONE_TYPE               VARCHAR2(30)    -- HZ_CONTACT_POINTS
  ,TELEX_NUMBER                 VARCHAR2(50)    -- HZ_CONTACT_POINTS
  /*  . . . */
  ,WEB_TYPE                     VARCHAR2(60)    -- HZ_CONTACT_POINTS
  ,STATUS                       VARCHAR2(1)     -- HZ_CONTACT_POINTS
  ,CONTACT_POINT_PURPOSE        VARCHAR2(30)    -- HZ_CONTACT_POINTS
);




Expected result:
----------------
I do not expect to experience any errors.

Actual result:
--------------
Warning:  oci_new_collection() [function.oci-new-collection]:
OCI-22303: type "APPS"."HZ_PARTY_SEARCH.CONTACT_POINT_LIST" not found
in C:\wamp\www\test.php on line 18


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38791&edit=1

Reply via email to