[#5088] Bad deserialisation of PostgreSQL UDTs that contain boolean attributes

This commit is contained in:
lukaseder 2016-02-16 15:24:02 +01:00
parent 4516fee424
commit fc1a4e52da

View File

@ -2007,7 +2007,7 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
// Not supported
}
else if (type == Boolean.class) {
return (T) Boolean.valueOf(string);
return (T) Convert.convert(string, Boolean.class);
}
else if (type == BigInteger.class) {
return (T) new BigInteger(string);