Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 43184 invoked from network); 9 Nov 2009 14:12:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Nov 2009 14:12:10 -0000 Received: (qmail 46252 invoked by uid 500); 9 Nov 2009 14:12:09 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 46198 invoked by uid 500); 9 Nov 2009 14:12:08 -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 46190 invoked by uid 99); 9 Nov 2009 14:12:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 14:12:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Mon, 09 Nov 2009 14:11:59 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1N7Uy2-00031d-AI for user-java@ibatis.apache.org; Mon, 09 Nov 2009 06:11:38 -0800 Message-ID: <26267056.post@talk.nabble.com> Date: Mon, 9 Nov 2009 06:11:38 -0800 (PST) From: fcarballo To: user-java@ibatis.apache.org Subject: Re: Duplicate CacheKey with several query parameters value on null (IBATIS-663) In-Reply-To: <25576546.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: fcarballo@gmail.com References: <25576546.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hey, no one found any solution to this? I really think that this is a serious bug. I'm using an ad-hoc version of ibatis, with this class modified. But I'll be glad to get this fix on a release version. fcarballo wrote: > > I'm having a problem with cached stored procedures call, using null > parameters. > When I call a stored procedure like: "call user.some_sp(?,?)" I get the > same > cacheKey for parameters: [1, null] and [null, 1] > I think that the problem is in class > com.ibatis.sqlmap.engine.exchange.BaseDataExchange on method getCacheKey: > for (int i = 0; i < data.length; i++) { > if (data[i] != null) { > key.update(data[i]); > } > } > If the paramValue is null, it is ignored. Then when I get the cacheKey, on > the parameters > values part, I get |1| for both parameters pair. > -- View this message in context: http://old.nabble.com/Duplicate-CacheKey-with-several-query-parameters-value-on-null-%28IBATIS-663%29-tp25576546p26267056.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org