-
Notifications
You must be signed in to change notification settings - Fork 934
NH-3889 - Fixed weird extra joins in subqueries #482
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
Conversation
map.Column("SettingId"); | ||
}); | ||
|
||
//rc.Bag(x => x.Parts, map => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No commented code, please
Please fix new tests in the Firbird, and otherwise good to go. |
Fixed up. |
@PleasantD not sure about Firebird |
LGTM |
Rebased on master |
Can this be included in 4.1.0? |
Thanks for rebase. I think I've noticed this phenomenon too. Can you check if Hibernate have made a similar change or otherwise differ from what we have in this code? |
Hibernate seems to grammar similar to ours before my change.
So, no, it doesn't look like they have made any similar fix. |
The test cases fail on SQL Server CE. We need some resolution for that before merging. |
I rolled back the grammar change and ran the tests.
The issue isn't with the grammar change, but that SQL Server CE does not support subqueries that return a scalar result. The four failing tests all generate a subquery with a SUM result in the SELECT clause which just won't parse for SQL Server CE. With that in mind, what is the policy for ignoring tests that fail on a single dialect? |
Hi @PleasantD, can you please enable Allow edits from maintainers feature? |
Done |
… creating implicit joins
Thanks, @PleasantD. Merged |
See https://nhibernate.jira.com/browse/NH-3889