ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Goodin <brandon.goo...@gmail.com>
Subject Re: Is there a way to remove the quotation marks that ibatis inserts when using #[]# on the <iterate> tag?
Date Mon, 18 Apr 2005 17:16:18 GMT
Sam,

$[]$ should work. I tested it this weekend and it worked fine.

Brandon

On 4/18/05, Abeyratne, Sam <sam.abeyratne@cingular.com> wrote:
> Hi Brice,
> 
> That does not work. Simply because I am passing a list array. And for a
> List the ibatis syntax is #[]#. I tried doing something like #?[]?# but
> that does not work.
> 
> Thanks!
> Sam
> 
> -----Original Message-----
> From: Brice Ruth [mailto:bdruth@gmail.com]
> Sent: Friday, April 15, 2005 6:32 PM
> To: ibatis-user-java@incubator.apache.org
> Subject: Re: Is there a way to remove the quotation marks that ibatis
> inserts when using #[]# on the <iterate> tag?
> 
> use $ in place of the #, that way it won't be quoted.
> 
> On 4/15/05, Abeyratne, Sam <sam.abeyratne@cingular.com> wrote:
> >
> >
> >
> > I want to use the <iterate> tag to create an sql statement.
> >
> >
> >
> > If I have something like table_name@#[]# and the first value in the
> list for
> > example is database1, it really translates to table_name@'database1'.
> This
> > fails because of the single quotes. Is there a way to remove these
> single
> > quotes? Meaning, translate table_name@#[]# to table_name@mmsdev1?
> >
> >
> >
> > Any assiatnce would be much appreciated!
> >
> > Thanks!
> >
> > Sam
> 
> --
> Brice Ruth
> Software Engineer, Madison WI
> 
>

Mime
View raw message