Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 80CD21BA131A for ; Thu, 5 Apr 2012 11:58:56 -0300 (ADT) Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SFo9F-00077E-PS for pgsql-jdbc@postgresql.org; Thu, 05 Apr 2012 14:58:55 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SFo92-000417-ES for pgsql-jdbc@postgresql.org; Thu, 05 Apr 2012 07:58:40 -0700 Date: Thu, 5 Apr 2012 07:58:40 -0700 (PDT) From: cognizant To: pgsql-jdbc@postgresql.org Message-ID: <1333637920442-5620617.post@n5.nabble.com> Subject: Issues with IN-OUT parameters for Array of Objects in EDB using Java MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.9 (/) X-Archive-Number: 201204/10 X-Sequence-Number: 22810 Hi I am having issues with passing IN-OUT Parameters from a function which returns a array of custom defined objects. I know that the new version(8.X+) of EDB support nested tables and so was wondering this issue must be faced by other java developers when trying to use the nested tables. Note I tried types.Other, Array and STRUCT to register the output nested table object but didnot work. *Below is my SQL code* create or replace TYPE OT_Ref_Country AS OBJECT ( countryId Integer, isoFullName Varchar2(256), doNotUseIndicator Integer ); create or replace TYPE NT_Ref_Countries IS TABLE OF OT_Ref_Country; FUNCTION getCountryList ( ip_countryId IN Ref_Country.countryid%TYPE,iop_NT_Ref_Countries in out NT_Ref_Countries ) RETURN Number ; *Java code:* CallableStatement st = con.prepareCall("{call pkg_ref_geography_mgr.getCountryList(4,?)}"); st.registerOutParameter(1,Types.OTHER); st.execute(); Please let me know if any additional details are needed. The version used is Postgresql 8.4 with Java6 Tks for the help -Mike -- View this message in context: http://postgresql.1045698.n5.nabble.com/Issues-with-IN-OUT-parameters-for-Array-of-Objects-in-EDB-using-Java-tp5620617p5620617.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.