From 9eac2b193b38f613b90f991a2a03f9b107139b67 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Sun, 9 Jan 2022 17:35:58 +0100 Subject: [PATCH] skip some tests on TiDB --- .../org/hibernate/orm/test/query/hql/FunctionTests.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java b/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java index 8902e05643..f209e284dd 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java @@ -14,6 +14,7 @@ import org.hibernate.dialect.HSQLDialect; import org.hibernate.dialect.MariaDBDialect; import org.hibernate.dialect.MySQLDialect; import org.hibernate.dialect.SybaseDialect; +import org.hibernate.dialect.TiDBDialect; import org.hibernate.testing.orm.domain.StandardDomainModel; import org.hibernate.testing.orm.domain.gambit.EntityOfBasics; import org.hibernate.testing.orm.domain.gambit.EntityOfLists; @@ -96,6 +97,7 @@ public class FunctionTests { @RequiresDialect(MySQLDialect.class) @RequiresDialect(SybaseDialect.class) @RequiresDialect(MariaDBDialect.class) + @RequiresDialect(TiDBDialect.class) // it's failing on the other dialects due to a bug in query translator public void testMaxindexMaxelement(SessionFactoryScope scope) { 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) { scope.inTransaction( session -> {