It seems that if binding UUID to bind parameter everything goes ok as far as param value is not null. But when value is null Postgres will throw exception about unrecognized parameter type.
E.g. for error:
Â
Â
Â
Postgres jdbc driver is fixed to work also in those cases:
But it works only if null is set by using:
PreparedStatement.setNull(pos, type, pgtype)
Currently it seems that PostgresUUIDType is implemented by returning overriden BasicBinder which uses
st.setNull( index, sqlDescriptor.getSqlType() );
for setting null.
So basically if null set is done like:
st.setNull( index, getSqlType(), "uuid" );
It would work.