HHH-2997 LikeExpression case sensitive not working properly

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19026 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Strong Liu 2010-03-18 21:49:48 +00:00
parent 229a57e8f5
commit 2796240cf5
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public class LikeExpression implements Criterion {
Criteria criteria,
CriteriaQuery criteriaQuery) throws HibernateException {
return new TypedValue[] {
criteriaQuery.getTypedValue( criteria, propertyName, value.toString().toLowerCase() )
criteriaQuery.getTypedValue( criteria, propertyName, ignoreCase ? value.toString().toLowerCase() : value.toString() )
};
}
}