Hi Lukas, I need a confirmation to be sure I am not going in the wrong direction.
In order to get all the tables referenced in a query (from, sub query from, inner join, outer join, other join ?), I do : - in the configuration, I combine a VisitListenerProvider to the VisitListenerProvider[], - my VisitListenerProvider returns a custom VisitListener, - the custom VisitListener uses only visitStart() (I had to choose one of the 4 methods :), - in visitStart(), if context.clause() equals Clause.TABLE_REFERENCE, context.queryPart() is added to the query tables set. Does the condition "if context.clause() equals Clause.TABLE_REFERENCE" returns true only and for all the tables referenced in a query ? It works fine on "SELECT a,b,c FROM table WHERE d=e" or on "SELECT a,b,c FROM table1 t1 JOIN table2 t2 ON t1.a=t2.a WHERE d=e", but : - will it always work ? (cf org.jooq.Clause : "Disclaimer, This SPI is still experimental!") - will it still works in all other cases where tables are referenced ? Thanks ! Aurélien -- 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.
