Hello everyone,
I had some JOOQ code that I was writing to generate a dynamic query.
I had made a selectQuery as such:
SelectQuery<Record10<...>> query = ...;
Afterwards, I had forgotten to perform a query.fetch(), and instead wrote:
query.forEach(entry -> { ... });
To my surprise, this not only compiled but also worked! I checked every
interface that SelectQuery extends and saw that this is supported due to
the SelectQuery <- Select <- ResultQuery <- Iterable extension, but was
unable to find an implementation that would explain this behaviour.
Could someone explain what is happening here?
Best,
FP
--
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.