From 3dfe4750dca207cc1a77016e79c5c0adb28bacd4 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Tue, 31 May 2022 14:09:14 +0200 Subject: [PATCH] [jOOQ/jOOQ#13611] UnsupportedOperationException when selecting single nested row with JSON column --- jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java b/jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java index c3fe390090..e0971f4902 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java +++ b/jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java @@ -3886,6 +3886,10 @@ public class DefaultBinding implements Binding { return converter.from((T) OffsetDateTimeParser.offsetDateTime(string)); else if (type == Instant.class) return converter.from((T) OffsetDateTimeParser.offsetDateTime(string).toInstant()); + else if (type == JSON.class) + return converter.from((T) JSON.json(string)); + else if (type == JSONB.class) + return converter.from((T) JSONB.jsonb(string)); else if (type == UByte.class) return converter.from((T) UByte.valueOf(string)); else if (type == UShort.class) @@ -3896,6 +3900,8 @@ public class DefaultBinding implements Binding { return converter.from((T) ULong.valueOf(string)); else if (type == UUID.class) return converter.from((T) UUID.fromString(string)); + else if (type == XML.class) + return converter.from((T) XML.xml(string)); else if (type.isArray()) return converter.from((T) pgNewArray(ctx, field, type, string));