HHH-14720 : Aliases generated for mixed-case column names that end in a number are not all lower-case

This commit is contained in:
Gail Badner 2021-07-08 14:56:56 -07:00 committed by Sanne Grinovero
parent c4ff6c19ac
commit 6d16d6d32f
1 changed files with 2 additions and 2 deletions

View File

@ -117,8 +117,8 @@ public class Column implements Selectable, Serializable, Cloneable {
if ( lastLetter == -1 ) {
alias = "column";
}
else if ( name.length() > lastLetter + 1 ) {
alias = name.substring( 0, lastLetter + 1 );
else if ( alias.length() > lastLetter + 1 ) {
alias = alias.substring( 0, lastLetter + 1 );
}
boolean useRawName = name.length() + suffix.length() <= dialect.getMaxAliasLength()