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

View File

@ -117,8 +117,8 @@ public String getAlias(Dialect dialect) {
if ( lastLetter == -1 ) { if ( lastLetter == -1 ) {
alias = "column"; alias = "column";
} }
else if ( name.length() > lastLetter + 1 ) { else if ( alias.length() > lastLetter + 1 ) {
alias = name.substring( 0, lastLetter + 1 ); alias = alias.substring( 0, lastLetter + 1 );
} }
boolean useRawName = name.length() + suffix.length() <= dialect.getMaxAliasLength() boolean useRawName = name.length() + suffix.length() <= dialect.getMaxAliasLength()