skip some tests on TiDB

This commit is contained in:
Gavin King 2022-01-09 17:35:58 +01:00
parent c88a9ac8bc
commit 9eac2b193b
1 changed files with 6 additions and 1 deletions

View File

@ -14,6 +14,7 @@ import org.hibernate.dialect.HSQLDialect;
import org.hibernate.dialect.MariaDBDialect; import org.hibernate.dialect.MariaDBDialect;
import org.hibernate.dialect.MySQLDialect; import org.hibernate.dialect.MySQLDialect;
import org.hibernate.dialect.SybaseDialect; import org.hibernate.dialect.SybaseDialect;
import org.hibernate.dialect.TiDBDialect;
import org.hibernate.testing.orm.domain.StandardDomainModel; import org.hibernate.testing.orm.domain.StandardDomainModel;
import org.hibernate.testing.orm.domain.gambit.EntityOfBasics; import org.hibernate.testing.orm.domain.gambit.EntityOfBasics;
import org.hibernate.testing.orm.domain.gambit.EntityOfLists; import org.hibernate.testing.orm.domain.gambit.EntityOfLists;
@ -96,6 +97,7 @@ public class FunctionTests {
@RequiresDialect(MySQLDialect.class) @RequiresDialect(MySQLDialect.class)
@RequiresDialect(SybaseDialect.class) @RequiresDialect(SybaseDialect.class)
@RequiresDialect(MariaDBDialect.class) @RequiresDialect(MariaDBDialect.class)
@RequiresDialect(TiDBDialect.class)
// it's failing on the other dialects due to a bug in query translator // it's failing on the other dialects due to a bug in query translator
public void testMaxindexMaxelement(SessionFactoryScope scope) { public void testMaxindexMaxelement(SessionFactoryScope scope) {
scope.inTransaction( scope.inTransaction(
@ -795,7 +797,10 @@ public class FunctionTests {
); );
} }
@Test @SkipForDialect(dialectClass = MySQLDialect.class) @SkipForDialect(dialectClass = MariaDBDialect.class) @Test
@SkipForDialect(dialectClass = MySQLDialect.class)
@SkipForDialect(dialectClass = MariaDBDialect.class)
@SkipForDialect(dialectClass = TiDBDialect.class)
public void testDateAddDiffFunctions(SessionFactoryScope scope) { public void testDateAddDiffFunctions(SessionFactoryScope scope) {
scope.inTransaction( scope.inTransaction(
session -> { session -> {