Hello,

Those warnings help track issues when unexpected data types are
encountered. However, I suppose the log level could be changed to DEBUG:
https://github.com/jOOQ/jOOQ/issues/2963

Can you please show the query (Java code) you ran to produce this? It's a
"plain SQL" query, I assume? I wonder if there is any sensible way to
"auto-register" generated enum types for these cases. I'll have to
investigate that... I have registered #2964 for this:
https://github.com/jOOQ/jOOQ/issues/2964

Cheers
Lukas


2014/1/20 Vijay Ganesan <[email protected]>

>
> When reading records from a Postgres table containing a column of ENUM
> type, I see a "Not supported by dialect" warning message.
> In the log below, the enum column is called "TYPE_ENUM" and the
> JOOQ-generated Java Enum is TypeEnum.
> *[o.j.i.MetaDataFieldProvider] : Not supported by dialect : Type TYPE_ENUM
> is not supported in dialect POSTGRES <-- seen in logs*
> I am however able to read the Enum value that comes through as
> a org.postgresql.util.PGobject as follows:
> Field<TypeEnum> typeField = Tables.XYZ.TypeEnum;
> Object typeObject = record.getValue(typeField.getName());
> String typeString = typeObject.toString();
> TypeEnum type = TypeEnum.valueOf(typeString);
>
> Since I can read this fine, why is there a warning from JOOQ? Is my way of
> using Enums incorrect? How can this warning be eliminated?
>
> Thanks.
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to