[jOOQ/jOOQ#15395] Exception when MockResult contains UDTRecord
This commit is contained in:
parent
06a169b8e3
commit
434619a91d
@ -4157,6 +4157,11 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
|
||||
if (object == null)
|
||||
return null;
|
||||
|
||||
// [#15395] The ResultSet::getObject method returned a UDTRecord (i.e. it's a MockResultSet).
|
||||
// As such, we can skip the serialisation / deserialisation logic.
|
||||
else if (object instanceof Record r)
|
||||
return r;
|
||||
|
||||
String s = object.toString();
|
||||
List<String> values = PostgresUtils.toPGObject(s);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user