[jOOQ/jOOQ#12141] Data conversion error converting "TIMESTAMP to JSON" in H2
This commit is contained in:
parent
aae2e82602
commit
f39f2c6542
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user