Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 60447 invoked from network); 21 Aug 2009 16:18:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Aug 2009 16:18:37 -0000 Received: (qmail 5820 invoked by uid 500); 21 Aug 2009 16:18:58 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 5781 invoked by uid 500); 21 Aug 2009 16:18:58 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 5773 invoked by uid 99); 21 Aug 2009 16:18:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2009 16:18:58 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,HTML_NONELEMENT_40_50,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2009 16:18:49 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MeWou-0007Ri-M5 for user-java@ibatis.apache.org; Fri, 21 Aug 2009 09:18:28 -0700 Message-ID: <25082929.post@talk.nabble.com> Date: Fri, 21 Aug 2009 09:18:28 -0700 (PDT) From: M V Chetan To: user-java@ibatis.apache.org Subject: Problem calling Stored function in Oracle MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_70411_9153857.1250871508680" X-Nabble-From: chetan.minajagi@tcs.com X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_70411_9153857.1250871508680 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I'm facing certain problems in getting my ibatis mapping to work with an oracle stored function Here is my mapping http://www.nabble.com/file/p25082929/query1.jpg { ? = call PKG_SEARCH_LIST.F_COMPANY_LIST(?,?,?,?,?,?,?,?) } The error that I get is PLS-00306: wrong number or types of arguments in call to 'F_COMPANY_LIST' ORA-06550: line 1, column 7: PL/SQL: Statement ignored The stored function is as follows CREATE OR REPLACE PACKAGE BODY PKG_SEARCH_LIST AS FUNCTION F_COMPANY_LIST(p_Company varchar2,p_EntFromDt date, p_EntToDt date, p_LstModFromdt date, P_LstModToDt date, p_TransStatus varchar2, p_sort varchar2, p_QueryType varchar2) RETURN pkg_crs_util.ref_cursor IS ret_cursor pkg_crs_util.ref_cursor; BEGIN OPEN ret_cursor for select 1 parent_flg, 'Company1'company, null active_status ,null role, null security, null Deal_Fr_Dt, null Deal_To_Dt, null Deal_Title, null Deal_type from dual union select 0 parent_flg , 'Company1' company, 'Y' active_status ,1 role, 'xyz' security, sysdate Deal_Fr_Dt, sysdate Deal_To_Dt, 'Mydeal' Deal_Title,'Financing' Deal_type from dual order by parent_flg desc ; RETURN ret_cursor; END; END PKG_SEARCH_LIST; Can someone please point out where I am going wrong? Regards, Chetan -- View this message in context: http://www.nabble.com/Problem-calling-Stored-function-in-Oracle-tp25082929p25082929.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com. ------=_Part_70411_9153857.1250871508680 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I'm facing certain problems in getting my ibatis mapping to work with an oracle stored function Here is my mapping

{ ? = call PKG_SEARCH_LIST.F_COMPANY_LIST(?,?,?,?,?,?,?,?) }


The error that I get is PLS-00306: wrong number or types of arguments in call to 'F_COMPANY_LIST' ORA-06550: line 1, column 7: PL/SQL: Statement ignored The stored function is as follows
CREATE OR REPLACE PACKAGE BODY PKG_SEARCH_LIST AS FUNCTION F_COMPANY_LIST(p_Company varchar2,p_EntFromDt date, p_EntToDt date, p_LstModFromdt date, P_LstModToDt date, p_TransStatus varchar2, p_sort varchar2, p_QueryType varchar2) RETURN pkg_crs_util.ref_cursor IS ret_cursor pkg_crs_util.ref_cursor; BEGIN OPEN ret_cursor for select 1 parent_flg, 'Company1'company, null active_status ,null role, null security, null Deal_Fr_Dt, null Deal_To_Dt, null Deal_Title, null Deal_type from dual union select 0 parent_flg , 'Company1' company, 'Y' active_status ,1 role, 'xyz' security, sysdate Deal_Fr_Dt, sysdate Deal_To_Dt, 'Mydeal' Deal_Title,'Financing' Deal_type from dual order by parent_flg desc ; RETURN ret_cursor; END; END PKG_SEARCH_LIST;
Can someone please point out where I am going wrong? Regards, Chetan

View this message in context: Problem calling Stored function in Oracle
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
------=_Part_70411_9153857.1250871508680--