-
Notifications
You must be signed in to change notification settings - Fork 377
Open
Labels
status: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged
Description
Custom converters like these are broken in version 4:
new Converter<E, JdbcValue>() {
@Override
public JdbcValue convert(E source) {
return JdbcValue.of(source.name(), JDBCType.OTHER);
}
};
The reason seems to be that previously the code 1111 was passed on whereas now it is dropped:
This breaks custom enum conversion for postgres again.
My current workaround is to create a custom SQLType like this:
SQLType PG_ENUM_TYPE = new SQLType() {
@Override
public String getName() {
return JDBCType.OTHER.getName();
}
@Override
public String getVendor() {
return JDBCType.OTHER.getVendor();
}
@Override
public Integer getVendorTypeNumber() {
return JDBCType.OTHER.getVendorTypeNumber();
}
};
By using the custom type the comparison fails and the 1111 code gets passed along to the database driver again.
Metadata
Metadata
Assignees
Labels
status: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged