You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by CarloV <ca...@scs-computers.com> on 2008/07/09 16:27:15 UTC

nullValue and empty Sring

If i want to set a nullValue replacement for an empty String i use this in an
explicit parameterMap

<parameter property="codCopiaEsito" jdbcType="CHAR" nullValue=""/>

If i want to do the same thing using inline parameters how should i write
the statement?

I tried whit 

#codCopiaEsito,jdbcType=CHAR,nullValue=""#

and 

#codCopiaEsito,jdbcType=CHAR,nullValue=#

but it doesn't work.

Thanks
Carlo
-- 
View this message in context: http://www.nabble.com/nullValue-and-empty-Sring-tp18362864p18362864.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: nullValue and empty Sring

Posted by Jeff Stahl <je...@earthlink.net>.
Don't you have to put the CHAR in quotes as well?

CarloV wrote:
> If i want to set a nullValue replacement for an empty String i use this in an
> explicit parameterMap
>
> <parameter property="codCopiaEsito" jdbcType="CHAR" nullValue=""/>
>
> If i want to do the same thing using inline parameters how should i write
> the statement?
>
> I tried whit 
>
> #codCopiaEsito,jdbcType=CHAR,nullValue=""#
>
> and 
>
> #codCopiaEsito,jdbcType=CHAR,nullValue=#
>
> but it doesn't work.
>
> Thanks
> Carlo
>