nhibernate-core
nhibernate-core copied to clipboard
SqlStringHelper.RemoveAsAliasesFromSql remove *all* aliases
This removes multiple occurrences of aliases from the sql string not just the last one.
I had the problem while using the following projection, which results in invalid sql (sqlserver)
Projections.Distinct(Projections.ProjectionList()
.Add(Projections.Max(() => ability.Role))
.Add(Projections.GroupProperty(Projections.RootEntity())))
@hazzik can you or somebody else maybe approve the ci run, so I can check if everything works?
Okay, the MySQL failure seems to be unrelated, because it somehow breaks in the authentication step.
We need some tests, otherwise we would not be able to accept the contribution.