HHH-6773 test fails on sybase

This commit is contained in:
Strong Liu 2011-10-26 22:46:50 +08:00
parent 082431a48d
commit 27e9957f9e
3 changed files with 7 additions and 1 deletions

View File

@ -36,7 +36,9 @@ import org.hibernate.dialect.HSQLDialect;
import org.hibernate.dialect.MckoiDialect;
import org.hibernate.dialect.MySQLDialect;
import org.hibernate.dialect.PointbaseDialect;
import org.hibernate.dialect.SybaseASE15Dialect;
import org.hibernate.dialect.TimesTenDialect;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.transform.Transformers;
import org.hibernate.type.DateType;
import org.hibernate.type.EntityType;
@ -713,6 +715,7 @@ public class FumTest extends LegacyTestCase {
}
@Test
@SkipForDialect( value = SybaseASE15Dialect.class, jiraKey = "HHH-3690" )
public void testCompositeKeyPathExpressions() throws Exception {
Session s = openSession();
s.beginTransaction();

View File

@ -31,6 +31,8 @@ import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.criterion.Example;
import org.hibernate.criterion.Restrictions;
import org.hibernate.dialect.SybaseASE15Dialect;
import org.hibernate.testing.SkipForDialect;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
@ -67,6 +69,7 @@ public class QueryByExampleTest extends LegacyTestCase {
}
@Test
@SkipForDialect( value = SybaseASE15Dialect.class, jiraKey = "HHH-4580")
public void testJunctionNotExpressionQBE() throws Exception {
deleteData();
initData();

View File

@ -82,7 +82,7 @@ abstract public class DialectChecks {
public static class SupportsUnboundedLobLocatorMaterializationCheck implements DialectCheck {
public boolean isMatch(Dialect dialect) {
return dialect.supportsUnboundedLobLocatorMaterialization();
return dialect.supportsExpectedLobUsagePattern() && dialect.supportsUnboundedLobLocatorMaterialization();
}
}