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 wilberto <wi...@ec-red.com> on 2005/11/03 23:26:13 UTC

Error setting null values in dates

Hi I have a problem setting null values in dates. this is my code: 

<parameter property=p_aci_fec_Infraccion jdbcType=st_aci_fec_Infraccion 
javaType=java.util.Date nullValue="NUMERIC" null="0" mode=IN/> 

when i run the code i have this message: 

(Error) Attribute 'null' used but not declared. 

any idea about how solve the problem 

thank you very much 

Wilbert
---------------------------------------------------------------
EC Red Internet gr@tis
Inscríbete en www.ec-red.com

Re: Error setting null values in dates

Posted by Clinton Begin <cl...@gmail.com>.
With all due respect, there is nothing right about the statement you've
posted...it has many problems, including incorrect types, missing quotes and
attributes that don't exist...

Try this:

<parameter
property="p_aci_fec_Infraccion"
jdbcType="DATETIME"
javaType="java.util.Date"
nullValue="2005/05/23"
/>

Clinton

On 11/3/05, wilberto <wi...@ec-red.com> wrote:
>
> Hi I have a problem setting null values in dates. this is my code:
>
> <parameter property=p_aci_fec_Infraccion jdbcType=st_aci_fec_Infraccion
> javaType=java.util.Date nullValue="NUMERIC" null="0" mode=IN/>
>
> when i run the code i have this message:
>
> (Error) Attribute 'null' used but not declared.
>
> any idea about how solve the problem
>
> thank you very much
>
> Wilbert
> ---------------------------------------------------------------
> EC Red Internet gr@tis
> Inscríbete en www.ec-red.com <http://www.ec-red.com>
>