ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: ibatis 3 - standard string concatenation - double pipe
Date Fri, 25 Sep 2009 16:45:00 GMT
You could write a JDBC driver wrapper, that intercepts the call to execute.
Clinton

On Fri, Sep 25, 2009 at 8:41 AM, Thanh PHAM <dev@pham.me> wrote:

> Hi,
>
> I know your suggestion will work for almost situation. But my boss want to
> modify the sql before sending to DB in case where he can't pass it in
> parameter. Ex : a complex function.
>
> Do you a way  to modify sql of iBatis ?
>
> I know it's sick but it's the boss.
>
> Thanks in advance.
>
>
> 2009/8/18 Clinton Begin <clinton.begin@gmail.com>
>
>> Make it part of the parameter you pass in, and configure it in your app.
>>
>>
>> Clinton
>>
>> On 2009-08-18, Thanh PHAM <dev@pham.me> wrote:
>> > Hello,
>> >
>> > We have to support many various DB like Oracle, MSSQL, Postgre in our
>> > application and we want to use sql standard. However, MSSQL doesn't
>> support
>> > the *double **pipe** *character sequence || (standard) and use +
>> >
>> > Does anyone know a solution to support sql concatenation (|| or +) in a
>> > standard way with iBatis ?
>> >
>> > Thanks in advance.
>> >
>>
>> --
>> Sent from my mobile device
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
>> For additional commands, e-mail: user-java-help@ibatis.apache.org
>>
>>
>
>

Mime
View raw message