Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 1653 invoked from network); 25 Jun 2008 15:56:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2008 15:56:37 -0000 Received: (qmail 78911 invoked by uid 500); 25 Jun 2008 15:56:32 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 78900 invoked by uid 500); 25 Jun 2008 15:56:32 -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 78889 invoked by uid 99); 25 Jun 2008 15:56:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 08:56:32 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gwyn.evans@gmail.com designates 209.85.146.177 as permitted sender) Received: from [209.85.146.177] (HELO wa-out-1112.google.com) (209.85.146.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 15:55:40 +0000 Received: by wa-out-1112.google.com with SMTP id v33so1065267wah.24 for ; Wed, 25 Jun 2008 08:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=u7OHgcMqTKQc3m+xmok3OTwC5uSMuLnQJUF6y+sfdY8=; b=Z25fuIpLpQ8WFkxkQgMYKKDsOPD5SnQLaYN7Zi66vkPp5UCztYo+SRavVfsUGQQ5wK tldEiOoUsgF5Q9unpA8qAlNpFKkoJRjuXq2PQpiBCbKWLsJbgQWXz10mgZo8+A4/+y00 wjgbfsSDFR19r012fLEdg3r6EK48Qq52sq1Ws= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=kZuZMGT4AlLQTFeVG9ybrtfQUjL4LIWln1rgpAfhj+S6e3672V13qK+CqD7gvv36b7 PHxUCtU7Ukv8Elo6ODCnaOzWlcCoXkdfdGXUuWcRG9/+jomn8S5yIj3Gn/84KJSSd/VI VPgzZSGIMZc8zm+fbmR5ju73kqe9s658rMq+s= Received: by 10.114.177.1 with SMTP id z1mr5957284wae.37.1214409358292; Wed, 25 Jun 2008 08:55:58 -0700 (PDT) Received: by 10.114.77.8 with HTTP; Wed, 25 Jun 2008 08:55:58 -0700 (PDT) Message-ID: Date: Wed, 25 Jun 2008 16:55:58 +0100 From: "Gwyn Evans" To: user-java@ibatis.apache.org Subject: Re: Remove/trim spaces from generated SQL requests In-Reply-To: <972351.24214.qm@web38906.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27958_12937515.1214409358264" References: <972351.24214.qm@web38906.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_27958_12937515.1214409358264 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Simplest way is surely to not to have the spaces in the sql in the first place? /Gwyn On Wed, Jun 25, 2008 at 9:56 AM, Gilles Schlienger wrote: > Hello, > > I can see in the logs that the SQL requests generated by iBATIS (2.3.0.677) > have a lot of spaces between some elements of the request. > > I feel it might be keeping blanks from the XML sql_map file ...? > Would there be a way to "trim" these requests to have more readable logs > please ? > > Thanks a lot in advance > Regards > Gilles > > > > > _____________________________________________________________________________ > Envoyez avec Yahoo! Mail. Une boite mail plus intelligente > http://mail.yahoo.fr > ------=_Part_27958_12937515.1214409358264 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Simplest way is surely to not to have the spaces in the sql in the first place?

/Gwyn

On Wed, Jun 25, 2008 at 9:56 AM, Gilles Schlienger <s_gilou@yahoo.com> wrote:
Hello,

I can see in the logs that the SQL requests generated by iBATIS (2.3.0.677) have a lot of spaces between some elements of the request.

I feel it might be keeping blanks from the XML sql_map file ...?
Would there be a way to "trim" these requests to have more readable logs please ?

Thanks a lot in advance
Regards
Gilles



     _____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr

------=_Part_27958_12937515.1214409358264--