Just a quick note to say there's a bug in this code.
//And then one column for each cross tab value specified
> Result<?> crossTabHeadings = context.fetch(crossTabValues);
> for (Record r : crossTabHeadings)
> {
> resultFields.add
> (
> DSL.field
> (
> r.getValue(0).toString(),
> rawFields[rawFields.length - 2].getDataType(context.
> configuration())
> )
> );
> }
>
Should be rawFields[rawFields.length - 1] - that is, the type of each of
the pivoted fields should be the same as the type of the last field in the
raw query.
--
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.