[jOOQ/jOOQ#16585] Work around HSQLDB bug where wrong LocalTime value is

fetched when using bind values of type LocalTime[]
This commit is contained in:
Lukas Eder 2024-04-24 10:31:14 +02:00
parent c6afa068f5
commit 329fe26e29

View File

@ -1418,6 +1418,13 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
t = byte[][].class;
}
// [#16585] Another HSQLDB bug regarding LocalTime:
// See also: https://sourceforge.net/p/hsqldb/bugs/1702/
else if (t == LocalTime[].class) {
a = (Object[]) Convert.convertArray(a, Time[].class);
t = Time[].class;
}
ctx.statement().setArray(ctx.index(), new MockArray(ctx.family(), a, t));
break;
}