Hi.
I've used ibatis 2.3.4, and are now starting to use 3.0.
I'm using Postgres 8.4.
I'm trying to figure out why I have to specify jdbcType on those columns that
can be set to null.
Why was the default "Types.OTHER" removed?
Version 2.3.4:
from ParameterMap.java
if (jdbcType != JdbcTypeRegistry.UNKNOWN_TYPE) {
ps.setNull(i + 1, jdbcType);
} else {
ps.setNull(i + 1, Types.OTHER);
}
Version 3.0.242:
from BaseTypeHandler.java
if (parameter == null) {
if (jdbcType == null) {
throw new TypeException("JDBC requires that the JdbcType must be
specified for all nullable parameters.");
}
ps.setNull(i, jdbcType.TYPE_CODE);
} else {
setNonNullParameter(ps, i, parameter, jdbcType);
}
Thanks,
Odd-Rune.