Martin,

A short summary of the previous mail, responding to the original problem

> What I tried so far is this:
>  * Convert query to string
>  * Create a new query from the string (basically create a copy)
>  * Call query.getSelect().add(Factory.count()) --> seems to have no effect

The last should work, if you don't create a select statement with an
empty initial projection. Instead of:

Select<?> query = jooq.select(<empty/unknown>).from(table)....<unknown>

Do this:

Select<?> query = jooq.selectOne().from(table)....<unknown>

You should be able to modify the projection through query.getSelect(), then

-- 
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