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:
parent
f59f0ce406
commit
96faae93b1
|
@ -113,7 +113,7 @@ public class Column implements Selectable, Serializable, Cloneable {
|
||||||
final int lastLetter = StringHelper.lastIndexOfLetter( name );
|
final int lastLetter = StringHelper.lastIndexOfLetter( name );
|
||||||
final String suffix = AliasConstantsHelper.get( uniqueInteger );
|
final String suffix = AliasConstantsHelper.get( uniqueInteger );
|
||||||
|
|
||||||
String alias = name;
|
String alias = name.toLowerCase( Locale.ROOT );
|
||||||
if ( lastLetter == -1 ) {
|
if ( lastLetter == -1 ) {
|
||||||
alias = "column";
|
alias = "column";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue