[jOOQ/jOOQ#14437] UnsupportedOperationException when selecting row with
YearToSecond
This commit is contained in:
parent
193b9caf2b
commit
8039850d7c
@ -4031,6 +4031,12 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
|
||||
return converter.from((T) XML.xml(string), ctx.converterContext());
|
||||
else if (type == Year.class)
|
||||
return converter.from((T) Year.parse(string), ctx.converterContext());
|
||||
else if (type == YearToMonth.class)
|
||||
return converter.from((T) PostgresUtils.toYearToMonth(string), ctx.converterContext());
|
||||
else if (type == YearToSecond.class)
|
||||
return converter.from((T) PostgresUtils.toYearToSecond(string), ctx.converterContext());
|
||||
else if (type == DayToSecond.class)
|
||||
return converter.from((T) PostgresUtils.toDayToSecond(string), ctx.converterContext());
|
||||
else if (type.isArray())
|
||||
return converter.from((T) pgNewArray(ctx, field, type, string), ctx.converterContext());
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user