[jOOQ/jOOQ#12141] Data conversion error converting "TIMESTAMP to JSON" in H2

This commit is contained in:
Lukas Eder 2021-07-08 21:26:47 +02:00
parent aae2e82602
commit f39f2c6542

View File

@ -153,10 +153,12 @@ final class JSONEntryImpl<T> extends AbstractQueryPart implements JSONEntry<T>,
switch (ctx.family()) {
// [#10769] Some dialects don't support auto conversions from X to JSON
// [#10769] [#12141] Some dialects don't support auto conversions from X to JSON
case H2:
if (type.getType() == UUID.class)
return field.cast(VARCHAR(36));
else if (type.isTemporal())
return field.cast(VARCHAR);
break;