Knut Anders Hatlen schrieb:
Eike Stepper <[EMAIL PROTECTED]> writes:

Knut Anders Hatlen schrieb:
Eike Stepper <[EMAIL PROTECTED]> 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


Reply via email to