HHH-5597 org.hibernate.test.criteria.LikeTest.testLike fails on postgresql because of the default escape charactor
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20704 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
d8d1a0da62
commit
61fc1a482e
|
@ -30,6 +30,7 @@ import org.hibernate.Session;
|
||||||
import org.hibernate.Transaction;
|
import org.hibernate.Transaction;
|
||||||
import org.hibernate.criterion.Restrictions;
|
import org.hibernate.criterion.Restrictions;
|
||||||
import org.hibernate.dialect.MySQLDialect;
|
import org.hibernate.dialect.MySQLDialect;
|
||||||
|
import org.hibernate.dialect.PostgreSQLDialect;
|
||||||
import org.hibernate.testing.junit.functional.FunctionalTestCase;
|
import org.hibernate.testing.junit.functional.FunctionalTestCase;
|
||||||
|
|
||||||
|
|
||||||
|
@ -67,7 +68,7 @@ public class LikeTest extends FunctionalTestCase {
|
||||||
|
|
||||||
assertEquals( 1, objects.size() );
|
assertEquals( 1, objects.size() );
|
||||||
session.clear();
|
session.clear();
|
||||||
if ( !( getDialect() instanceof MySQLDialect ) ) {
|
if ( !( getDialect() instanceof MySQLDialect ) && ! ( getDialect() instanceof PostgreSQLDialect )) {
|
||||||
// retrieve object - case insensitive via custom expression - works
|
// retrieve object - case insensitive via custom expression - works
|
||||||
// ok
|
// ok
|
||||||
objects = session.createCriteria( TestObject.class ).add(
|
objects = session.createCriteria( TestObject.class ).add(
|
||||||
|
|
Loading…
Reference in New Issue