Skip to content

Commit

Permalink
Always generate lowercase column aliases
Browse files Browse the repository at this point in the history
This change is needed by hibernate-rx as a workaround for behavior
of the Postgres client. But anyway I think it's cleaner.
  • Loading branch information
gavinking committed Jan 19, 2020
1 parent 850c0d6 commit d85e14a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -113,7 +113,7 @@ public String getAlias(Dialect dialect) {
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";
}
Expand Down

0 comments on commit d85e14a

Please sign in to comment.