[jOOQ/jOOQ#15732] InputStream.readAllBytes() is available only in JDK 9

This commit is contained in:
Lukas Eder 2024-03-28 08:12:08 +01:00
parent 8d123981aa
commit 77fbee545c

View File

@ -207,6 +207,7 @@ public class BlobBinding implements Binding<byte[], byte[]> {
try {
switch (ctx.family()) {
// [#15732] Work around https://github.com/duckdb/duckdb/issues/11381
case DUCKDB:
try {
@ -221,6 +222,8 @@ public class BlobBinding implements Binding<byte[], byte[]> {
throw new SQLException(e);
}
default:
return blob.getBytes(1, asInt(blob.length()));
}