[jOOQ/jOOQ#13081] Cannot use H2 enum values in JSON documents

This commit is contained in:
Lukas Eder 2022-02-16 12:22:36 +01:00
parent d1d8d3205a
commit 67b0159023

View File

@ -189,6 +189,11 @@ final class JSONEntryImpl<T> extends AbstractQueryPart implements JSONEntry<T>,
case H2:
if (isType(type, UUID.class))
return field.cast(VARCHAR(36));
// This is fixed, but not in 2.1.210 yet:
// https://github.com/h2database/h2database/issues/3439
else if (type.isEnum())
return field.cast(VARCHAR);
else if (type.isTemporal())
return field.cast(VARCHAR);