[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:
parent
c6afa068f5
commit
329fe26e29
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user