-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Confusing error message when reading a non-existing Field from a Record containing accidentally nested row types #15085
Comments
I'll try this error message:
The problem is really specific to the fact that the row type is As a side note, it might be possible to allow such access of nested row attributes via top level column references, pretending the record is flat. I'm not sure yet if this is a good idea, but here's a feature request for this: |
This message improvement should also apply to index based field access |
Field from a Record containing accidentally nested row types
Field from a Record containing accidentally nested row types
Field from a Record containing accidentally nested row types
Field from a Record containing accidentally nested row types
Field from a Record containing accidentally nested row types
Since jOOQ 3.17, users may be accidentally nesting records in their queries:
An example:
When trying to read a
CONFIGURATION
column from the resulting nested record, this error message appears:The fact that
Row (row (
means the row is nested is too subtle to debug this. It appears that the requested column is right there!Probably, the error message can be improved to help users here.
The text was updated successfully, but these errors were encountered: