Never mind. I figured out the issue. DSL.max works fine, but I need to give
the field a name (i.e.,g DSL.max(...).as("myfield"), and then reference
that name in the fetchOne("myfield", String.class) call.
On Thursday, October 27, 2016 at 11:54:57 AM UTC-4, Jacob G wrote:
>
> I'm trying to write a select query using DSL.max on a custom field, i.e.,
> a DSL.field constructed using jsonb, but I'm getting this error when
> running the following query (specific names obscured):
>
> Field (cast("schema"."table"."field" #>> '{property}' AS
> schema.enum_type)) is not contained in Row
> (max(cast("schema"."table"."field" #>> '{property}' AS schema.enum_type)))
>
> It looks like DSL.max requires that the field be a real column in the
> table, i.e., in the Record definition. Am I understand that correctly? Is
> there a way to do what I'm trying?
>
> 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/d/optout.