HHH-14720 : Aliases generated for mixed-case column names that end in a number are not all lower-case
This commit is contained in:
parent
c4ff6c19ac
commit
6d16d6d32f
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue