Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad number of fields generated when auto-collecting fields in select().from(...) with JOIN .. USING (...) or NATURAL JOIN #2808

Open
lukaseder opened this issue Oct 28, 2013 · 0 comments

Comments

@lukaseder
Copy link
Member

jOOQ's select() or selectFrom() selects all fields available form the from() clause.

Most SQL dialects report "special" field behaviour, when using JOIN .. USING (...) or NATURAL JOIN clauses. In those cases, the join columns will no longer be associated with their "left" or "right" tables, but they're listed standalone as such:

SELECT * FROM A JOIN B USING (X, Y);

X | Y | A.A1 | A.A2 | B.B1 | ... |
-----------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant