Skip to content

Conversation

@delta-emil
Copy link
Contributor

@delta-emil delta-emil commented Oct 29, 2025

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

@fredericDelaporte

This comment was marked as resolved.

Copy link
Member

@fredericDelaporte fredericDelaporte left a 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;";
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants