Skip to content

Commit

Permalink
HHH-15196 - Use default locale when lowercasing
Browse files Browse the repository at this point in the history
Locale.ROOT does not correctly lowercase Turkish "I"s.
  • Loading branch information
andygithubmf authored and sebersole committed Apr 8, 2022
1 parent 4b45beb commit cb738ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public String toSqlString(Criteria criteria,CriteriaQuery criteriaQuery) {

@Override
public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) {
final String matchValue = ignoreCase ? value.toString().toLowerCase(Locale.ROOT) : value.toString();
final String matchValue = ignoreCase ? value.toString().toLowerCase() : value.toString();

return new TypedValue[] { criteriaQuery.getTypedValue( criteria, propertyName, matchValue ) };
}
Expand Down

0 comments on commit cb738ce

Please sign in to comment.