[jOOQ/jOOQ#18961] Wrong data type generated in DDL for VARBINARY

converted as UUID type
This commit is contained in:
Lukas Eder 2025-08-29 14:39:48 +02:00
parent c1fe6d2d80
commit f336955121

View File

@ -6167,7 +6167,7 @@ final class Tools {
}
// [#5807] These databases cannot use the DataType.getCastTypeName() (which is simply char in this case)
if (type.getType() == UUID.class && NO_SUPPORT_CAST_TYPE_IN_DDL.contains(ctx.dialect())) {
if (type.getFromType() == UUID.class && NO_SUPPORT_CAST_TYPE_IN_DDL.contains(ctx.dialect())) {
toSQLDDLTypeDeclaration(ctx, VARCHAR(36));
return;
}