Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 3146 invoked from network); 7 Jan 2006 20:12:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jan 2006 20:12:40 -0000 Received: (qmail 4626 invoked by uid 500); 7 Jan 2006 20:12:39 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 4607 invoked by uid 500); 7 Jan 2006 20:12:38 -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 4596 invoked by uid 99); 7 Jan 2006 20:12:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jan 2006 12:12:38 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of larry.meadors@gmail.com designates 66.249.82.197 as permitted sender) Received: from [66.249.82.197] (HELO xproxy.gmail.com) (66.249.82.197) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jan 2006 12:12:37 -0800 Received: by xproxy.gmail.com with SMTP id s19so1963189wxc for ; Sat, 07 Jan 2006 12:12:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Dx+EIacbylze4aZJNQRMAPMpmGm0nzQprZo3x1m7/lP/npbLUsgIS7xaKK2SxGQ4BuhLVSfGn6we0vWOdw/sJJdMRK/I4TFs0p6b0gaGXc81+R3nxozqS0UTJy6ywuMa9oGXlMUSrWABJVwEmo4pNX2gaU5Nh/aDMTZlYNaCkqM= Received: by 10.70.96.17 with SMTP id t17mr689682wxb; Sat, 07 Jan 2006 12:12:17 -0800 (PST) Received: by 10.70.75.18 with HTTP; Sat, 7 Jan 2006 12:12:17 -0800 (PST) Message-ID: Date: Sat, 7 Jan 2006 13:12:17 -0700 From: Larry Meadors Reply-To: lmeadors@apache.org Sender: larry.meadors@gmail.com To: user-java@ibatis.apache.org Subject: Re: Problems with displaying contents of table In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43C015A8.5060500@aladin.ca> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 1/7/06, zarar.siddiqi@utoronto.ca wrote: > > The first time you called "select", IBatis determined a way to process al= l > calls to the statement. So the next time you call it, IBatis is trying t= o > process the query the same way it did earlier (which is understandable). > But alas, the table has changed and whatever IBatis has stored in memory > is no longer applicable. Correct. > > One solution might be to re-initialize the SqlMapClient again the same wa= y > you did on application startup. This should fix the problem but you will > lose any caching that you might be doing or IBatis might have done. There is an easier way! :-) > > IBatis' behavior is correct as it can't afford to analyze maps on > every single call and does the work once. Altering a table is a fairly > large move, are you sure you can't avoid it? It can - remapResults=3D"true" in the select tag will do just that. Larry