HHH-13823 Always generate lowercase column aliases

This change is needed by hibernate-rx as a workaround for behavior
of the Postgres client. But anyway I think it's cleaner.
This commit is contained in:
gavinking 2020-01-19 15:19:50 +01:00 committed by Sanne Grinovero
parent f59f0ce406
commit 96faae93b1
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ public class Column implements Selectable, Serializable, Cloneable {
final int lastLetter = StringHelper.lastIndexOfLetter( name );
final String suffix = AliasConstantsHelper.get( uniqueInteger );
String alias = name;
String alias = name.toLowerCase( Locale.ROOT );
if ( lastLetter == -1 ) {
alias = "column";
}