Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 7946 invoked from network); 30 Nov 2009 18:24:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Nov 2009 18:24:49 -0000 Received: (qmail 87791 invoked by uid 500); 30 Nov 2009 18:24:48 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 87752 invoked by uid 500); 30 Nov 2009 18:24:47 -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 87744 invoked by uid 99); 30 Nov 2009 18:24:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 18:24:47 +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; Mon, 30 Nov 2009 18:24:45 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NFAvA-0002IJ-Q6 for user-java@ibatis.apache.org; Mon, 30 Nov 2009 10:24:24 -0800 Message-ID: <26579494.post@talk.nabble.com> Date: Mon, 30 Nov 2009 10:24:24 -0800 (PST) From: "jonte.eriksson" To: user-java@ibatis.apache.org Subject: choose and otherwise MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jonte.eriksson@gmail.com 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