Skip to content

Column.GetAlias should account for other suffixes #1418

Closed
@fredericDelaporte

Description

@fredericDelaporte

NHibernate.Mapping.Column.GetAlias may generate aliases with a length up to Dialect.MaxAliasLength. But the query generation logic may append an additional suffix for distinguishing joins, causing the alias to grow bigger than maximum alias length. (This is done with NHibernate.SqlCommand.SelectFragment.)

Column.GetAlias should not exhaust the available length and keep at least three characters left for this additional suffix. (Allowing 99 joins + the _ of the suffix.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions