Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 62783 invoked from network); 2 Dec 2009 14:54:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Dec 2009 14:54:40 -0000 Received: (qmail 44726 invoked by uid 500); 2 Dec 2009 14:54:40 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 44677 invoked by uid 500); 2 Dec 2009 14:54:39 -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 44669 invoked by uid 99); 2 Dec 2009 14:54:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Dec 2009 14:54:39 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 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; Wed, 02 Dec 2009 14:54:36 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NFqat-0002Td-Jz for user-java@ibatis.apache.org; Wed, 02 Dec 2009 06:54:15 -0800 Message-ID: <26610189.post@talk.nabble.com> Date: Wed, 2 Dec 2009 06:54:15 -0800 (PST) From: "jonte.eriksson" To: user-java@ibatis.apache.org Subject: Re: choose and otherwise In-Reply-To: <26587923.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jonte.eriksson@gmail.com References: <26579494.post@talk.nabble.com> <16178eb10911301027u1cb3fbc6sf8529d0e054d1c50@mail.gmail.com> <26587923.post@talk.nabble.com> My example was wrong in the test expression. The test expression should not include the #{prop} syntax, just "prop". Actually I did manage to get it right in other places. But I still got some issues when using a single parameter, like boolean. What do I write in the test expression to test that value? does not match when the parameter is set to true. Cheers, Jonas jonte.eriksson wrote: > > https://issues.apache.org/jira/browse/IBATIS-704 > > > Clinton Begin wrote: >> >> Sounds like a bug... I'll have a look at it. Can you file a Jira ticket >> for >> this? >> >> Cheers, >> Clinton >> >> On Mon, Nov 30, 2009 at 11:24 AM, jonte.eriksson >> wrote: >> >>> >>> Hi, >>> >>> I've been trying out iBATIS 3.0 beta 5 and according to the >>> documentation >>> the , and should work as a normal switch >>> case. I >>> have a merge update statement and uses a choose like following: >>> >>> >>> >>> WHEN NOT MATCHED THEN >>> INSERT (column) >>> VALUES (temp.column) >>> >>> >>> WHEN MATCHED THEN >>> DELETE >>> >>> >>> >>> The problem is that the section is never included, no matter >>> of >>> the value of the booleanProperty. >>> >>> If I change to using it works. >>> >>> >>> WHEN NOT MATCHED THEN >>> INSERT (column) >>> VALUES (temp.column) >>> >>> >>> WHEN MATCHED THEN >>> DELETE >>> >>> >>> Is this a bug in the tag or have I misunderstood how it is >>> supposed >>> to work? >>> >>> Thanks for a great framwork! >>> /Jonas >>> -- >>> View this message in context: >>> http://old.nabble.com/choose-and-otherwise-tp26579494p26579494.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 >>> >>> >> >> > > -- View this message in context: http://old.nabble.com/choose-and-otherwise-tp26579494p26610189.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