db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eike Stepper <step...@sympedia.com>
Subject Re: 'VARCHAR' from a data value of type '0'
Date Tue, 11 Jul 2006 10:31:53 GMT


Knut Anders Hatlen schrieb:
> Eike Stepper <stepper@sympedia.com> writes:
> 
>> Knut Anders Hatlen schrieb:
>>> Eike Stepper <stepper@sympedia.com> writes:
>>>
>>> [...]
>>>
>>> It seems like setNull() is called with 0 as type id (second argument)
>>> at line 95 in StatementCreatorUtils.java. It should work if you change
>>> the type id to java.sql.Types.VARCHAR.
>> Hi Knut,
>>
>> Thx for your quick reply.
>> Unfortunately the call to setNull() is in the Spring Framework,
>> which I can't change ;-(
> 
> How do you supply the null to Spring? There should be a way to tell
> Spring to use the correct type id.
> 
> My guess after looking at your stack trace and the Spring code, is
> that org.eclipse.emf.cdo.server.impl.MapperImpl.sql() invokes the
> org.springframework.jdbc.core.JdbcTemplate.update() method with two
> parameters (String sql, Object[] args). There is also an update method
> with three parameters (String sql, Object args[], int[] argTypes). You
> could try to use that one instead.

Yeah, that works ;-)
Many Thanks!

Cheers
/Eike



Mime
View raw message