Hi,
I've put together two unit tests, one using JDBI and one using JDBC.
Both try to insert a null value for one of the columns. Using a
PreparedStatement directly seems to work, however using JDBI fails.
I've placed the two classes on gist:
https://gist.github.com/1722476
I've just also tried with the fluent API - using .bind("message",
(String)null) appears to work, however .bind(2, (String)null) doesn't.
It may be Derby-specific - in ObjectArgument.apply,
statement.setNull(position, Typs.OTHER) is called if value is null. It
looks like Derby's implementation expects the correct Type to still be
used.
Thanks - I've only been playing with JDBI for a day now, but I really
like what I'm seeing.
Z
On Feb 1, 11:10 pm, Brian McCallister <
bri...@skife.org> wrote: