[jOOQ/jOOQ#16581] Time zone information lost when fetching TIMETZ[] value in PostgreSQL

This commit is contained in:
Lukas Eder 2024-04-23 17:13:52 +02:00
parent 852da7839c
commit c6afa068f5

View File

@ -1510,7 +1510,8 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
// [#5586] [#5613] TODO: Improve PostgreSQL array deserialisation.
// [#5633] Special treatment for byte[][] types.
// [#14010] UDT arrays should skip the Convert utility
if (cdt.isBinary() || cdt.isUDT())
// [#16581] OffsetTime[] is returned as Time[] by Array::getArray
if (cdt.isBinary() || cdt.isUDT() || cdt.getType() == OffsetTime.class)
throw new ControlFlowSignal("GOTO the next array deserialisation strategy");
else
return (T) convertArray(array, (Class<? extends Object[]>) dataType.getType());