[jOOQ/jOOQ#17452] Converter<byte[], U> for binary columns doesn't work from within MULTISET expressions

This commit is contained in:
Lukas Eder 2024-10-17 15:58:02 +02:00
parent 8a78105439
commit 2697190c02

View File

@ -41,9 +41,9 @@ import static java.lang.Integer.parseInt;
import static java.util.Arrays.asList;
// ...
// ...
// ...
import static org.jooq.SQLDialect.H2;
import static org.jooq.SQLDialect.MARIADB;
// ...
import static org.jooq.SQLDialect.POSTGRES;
// ...
import static org.jooq.SQLDialect.SQLITE;
@ -252,7 +252,7 @@ final class JSONReader<R extends Record> {
// [#8829] LoaderImpl expects binary data to be encoded in base64,
// not according to org.jooq.tools.Convert
if (field.getType() == byte[].class && record.get(i) instanceof String) {
if (field.getDataType().isBinary() && record.get(i) instanceof String) {
String s = (String) record.get(i);
if (multiset) {