Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 58357 invoked from network); 24 Mar 2008 12:49:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Mar 2008 12:49:35 -0000 Received: (qmail 6762 invoked by uid 500); 24 Mar 2008 12:49:28 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 6744 invoked by uid 500); 24 Mar 2008 12:49:28 -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 6733 invoked by uid 99); 24 Mar 2008 12:49:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Mar 2008 05:49:27 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [87.248.110.147] (HELO n30.bullet.mail.ukl.yahoo.com) (87.248.110.147) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 Mar 2008 12:48:35 +0000 Received: from [217.12.4.215] by n30.bullet.mail.ukl.yahoo.com with NNFMP; 24 Mar 2008 12:48:55 -0000 Received: from [87.248.111.148] by t2.bullet.ukl.yahoo.com with NNFMP; 24 Mar 2008 12:48:55 -0000 Received: from [127.0.0.1] by omp205.mail.ukl.yahoo.com with NNFMP; 24 Mar 2008 12:48:55 -0000 X-Yahoo-Newman-Id: 509335.70736.bm@omp205.mail.ukl.yahoo.com Received: (qmail 39147 invoked from network); 24 Mar 2008 10:57:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:References:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:In-reply-to:Thread-Index:X-MimeOLE; b=ncBx2wD0PfP7j3KcCd2KKigsJVleogqdnlWsUfhn3Tar4gZjgplifLzhAt1+AHDkd+r1Px7MbhC/dAQCJhUg0fZEri6dLPgqfwbOlqImla/IeZT13QKYGeHM28XlxgzOjXu5S8TmzISi2aA61UkXnwBuThC45fD1QlGg/dC/YSU= ; Received: from unknown (HELO VAIOSZ330) (jfpoilpret@118.68.82.33 with login) by smtp006.mail.ukl.yahoo.com with SMTP; 24 Mar 2008 10:57:23 -0000 X-YMail-OSG: dYF5XgoVM1nn49ugrVuMUrr7_OFgaVlVapMJXf4vLS9q9kIz X-Yahoo-Newman-Property: ymail-3 From: "Jean-Francois Poilpret" To: References: <000601c88cc6$66ac99e0$3405cda0$@com> <000201c88d6b$9c6aa130$d53fe390$@com> Subject: RE: How can I use Oracle's "WITH" Clause? Date: Mon, 24 Mar 2008 17:57:12 +0700 Message-ID: <000601c88d9d$d8fe8580$1501a8c0@VAIOSZ330> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 In-reply-to: <000201c88d6b$9c6aa130$d53fe390$@com> Thread-Index: AciNLp/am0cmZr/+ToKCfnl1Ls7gMgAL7hlgAA/RIyA= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Virus-Checked: Checked by ClamAV on apache.org First try to replace "WHERE regdttm > '20080301010101'" with " WHERE = regdttm > '20080301010101'" because ">" is not allowed in XML. Cheers Jean-Francois -----Original Message----- From: Chimin Park [mailto:cmpark@daumcorp.com]=20 Sent: Monday, March 24, 2008 11:58 AM To: user-java@ibatis.apache.org; larry.meadors@gmail.com Subject: RE: How can I use Oracle's "WITH" Clause? Following is full of my query. (I modified few symbols cause I'm too cautious :D but I'm sure that this doesn't make any difference after all.) (If this makes your guys uncomfortable, let me know it. I'm not familiar with mailing culture so I may make some impolite mistake...you may see...I'm toooo cautious...:~( ) public List getReportList(){ getSqlMapClientTemplate().queryForList("Campaign.getReportList" ); } ). Larry 2008/3/23 =EB=B0=95=EC=B9=98=EB=AF=BC : > > > > > Following simple query doesn't work! > > > > with test as ( > > select 1 from dual > > ) > > select * from test > > > > I logged all message from iBatis with log4j. > > There are no error message, no result log. > > > > DEBUG - JakartaCommonsLoggingImpl.debug(27) | {conn-100013} = Preparing > Statement: with test as ( select 1 from dual ) select * from test > > DEBUG - JakartaCommonsLoggingImpl.debug(27) | {pstm-100014} = Executing > Statement: with test as ( select 1 from dual ) select * from test > > DEBUG - JakartaCommonsLoggingImpl.debug(27) | {pstm-100014} = Parameters: > [] > > DEBUG - JakartaCommonsLoggingImpl.debug(27) | {pstm-100014} Types: = [] > > > > It just gives no result! > > > > I tried searching on archives but it didn't work well=E2=80=A6 > > > > Is this impossible? Or is there other way I can use this? > > > > Thanks! > > > > Chimin Park > >