-
Notifications
You must be signed in to change notification settings - Fork 932
Fixes #3713: query cache result transformer aliases issue #3714
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
base: 5.5.x
Are you sure you want to change the base?
Fixes #3713: query cache result transformer aliases issue #3714
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
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.
This PR targets the 5.5.x branch. Fixes for bugs which are not regressions introduced in a supported version (5.5.x and 5.6.x as of now) should usually target the master branch.
It looks like this bug dates back to #2943, a 5.3.x change.
This said, the change is very simple and looks safe, so why not still putting this in 5.5.4, if other maintainers agree.
| [Test] | ||
| public void QueryCacheWithAliasToBeanTransformer() | ||
| { | ||
| const string query = "select s.id_ as Id from Simple as s;"; |
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.
This causes the test to fail for Oracle, which does not support statements ending with a semi-colon. Can you rewrite the test with a HQL query instead? It would let NHibernate handles this.
I don't know if this is the most elegant way to solve the issue, but it does solve it, at least for the case I found.
I'm not sure if other Loader sub-classes also need something similar.
fix #3713