Author: stliu
Date: 2010-09-25 06:41:36 -0400 (Sat, 25 Sep 2010)
New Revision: 20704
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/criteria/LikeTest.java
Log:
HHH-5597 org.hibernate.test.criteria.LikeTest.testLike fails on postgresql because of the
default escape charactor
Modified: core/trunk/testsuite/src/test/java/org/hibernate/test/criteria/LikeTest.java
===================================================================
---
core/trunk/testsuite/src/test/java/org/hibernate/test/criteria/LikeTest.java 2010-09-25
10:39:40 UTC (rev 20703)
+++
core/trunk/testsuite/src/test/java/org/hibernate/test/criteria/LikeTest.java 2010-09-25
10:41:36 UTC (rev 20704)
@@ -30,6 +30,7 @@
import org.hibernate.Transaction;
import org.hibernate.criterion.Restrictions;
import org.hibernate.dialect.MySQLDialect;
+import org.hibernate.dialect.PostgreSQLDialect;
import org.hibernate.testing.junit.functional.FunctionalTestCase;
@@ -67,7 +68,7 @@
assertEquals( 1, objects.size() );
session.clear();
- if ( !( getDialect() instanceof MySQLDialect ) ) {
+ if ( !( getDialect() instanceof MySQLDialect ) && ! ( getDialect()
instanceof PostgreSQLDialect )) {
// retrieve object - case insensitive via custom expression - works
// ok
objects = session.createCriteria( TestObject.class ).add(