Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 61326 invoked from network); 13 Aug 2008 02:36:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2008 02:36:53 -0000 Received: (qmail 90197 invoked by uid 500); 13 Aug 2008 02:36:50 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 90185 invoked by uid 500); 13 Aug 2008 02:36:50 -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 90173 invoked by uid 99); 13 Aug 2008 02:36:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Aug 2008 19:36:50 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.200.171] (HELO wf-out-1314.google.com) (209.85.200.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2008 02:35:53 +0000 Received: by wf-out-1314.google.com with SMTP id 28so2662879wfa.27 for ; Tue, 12 Aug 2008 19:36:20 -0700 (PDT) Received: by 10.142.47.13 with SMTP id u13mr3039940wfu.38.1218594979933; Tue, 12 Aug 2008 19:36:19 -0700 (PDT) Received: from ?192.168.0.7? ( [68.196.66.135]) by mx.google.com with ESMTPS id 29sm6659218wfg.0.2008.08.12.19.36.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 12 Aug 2008 19:36:18 -0700 (PDT) Message-Id: From: Ian Zabel To: user-java@ibatis.apache.org In-Reply-To: <48A2073E.1060801@earthlink.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: Really Weird Oracle REF Cursor Behavior Date: Tue, 12 Aug 2008 22:36:15 -0400 References: <48A2073E.1060801@earthlink.net> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org Very interesting. How do you map something like that? Thanks, Ian. On Aug 12, 2008, at 5:57 PM, Jeff Stahl wrote: > iBATIS seems to have a problem with handling RefCursors as OUT > parameters in stored procedures. I don't know how you're attempting > to use iBATIS in your project, but in house here we've found that > stored functions (where the Cursor is returned from the function and > not fetched into an out parameter) works best. > > Hope This Helps, > > Jeff Stahl > > Ian Zabel wrote: >> Hello, >> >> Using the latest build of iBATIS and Oracle REF Cursors, we're >> running >> into a problem with certain rows not coming back in the ResultSet. It >> seems to be certain data in the rows that makes them not return. >> >> For example, we have a column called INTERNAL_INVOICE_NBR. With the >> following values in that column, ROW 1 does _not_ return in the >> ResultSet from the REF Cursor when using iBATIS. >> ROW 1: mts - Sample Invoice, b2325 >> ROW 2: mts - New Invoice, b2330 >> >> However, if we update the column in ROW 1 with the value from ROW 2, >> then the row returns fine. >> >> Also, when using straight JDBC, the rows are returned. >> >> I've tried disabling cacheModels, enhancement, and lazyLoading, to no >> avail. When debugging into the iBATIS >> SqlExecutor.retrieveOutputParameters method, the ResultSet that it >> gets on line 399 does not include the row. In fact, if this row is >> the >> only row returned by the query, the ResultSet has no results at all. >> >> Any ideas? I'm really confused because it works fine with JDBC using >> the same connection as iBATIS, and if we change the data somewhat, >> then it returns fine. >> >> Thanks, >> Ian. >> >> >>