HHH-15900 Fix failing tests on TiDB due to missing trigger support

This commit is contained in:
Marco Belladelli 2022-12-20 10:21:18 +01:00 committed by Christian Beikov
parent 04b77066df
commit b68eacbb90
3 changed files with 11 additions and 0 deletions

View File

@ -17,6 +17,9 @@ import org.hibernate.testing.orm.junit.JiraKey;
import org.hibernate.testing.orm.junit.RequiresDialect;
import org.hibernate.testing.orm.junit.SessionFactory;
import org.hibernate.testing.orm.junit.SessionFactoryScope;
import org.hibernate.testing.orm.junit.SkipForDialect;
import org.hibernate.dialect.TiDBDialect;
import org.hibernate.tool.hbm2ddl.SchemaExport;
import org.hibernate.tool.schema.TargetType;
import org.junit.jupiter.api.Test;
@ -44,6 +47,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
@RequiresDialect(H2Dialect.class)
@RequiresDialect(DB2Dialect.class)
@RequiresDialect(SQLServerDialect.class)
@SkipForDialect(dialectClass = TiDBDialect.class, reason = "TiDB does not support triggers")
public class GeneratedTest {
@Test

View File

@ -16,6 +16,7 @@ import org.hibernate.dialect.MySQLDialect;
import org.hibernate.dialect.OracleDialect;
import org.hibernate.dialect.PostgreSQLDialect;
import org.hibernate.dialect.SQLServerDialect;
import org.hibernate.dialect.TiDBDialect;
import org.hibernate.tool.hbm2ddl.SchemaExport;
import org.hibernate.tool.schema.TargetType;
@ -24,6 +25,7 @@ import org.hibernate.testing.orm.junit.JiraKey;
import org.hibernate.testing.orm.junit.RequiresDialect;
import org.hibernate.testing.orm.junit.SessionFactory;
import org.hibernate.testing.orm.junit.SessionFactoryScope;
import org.hibernate.testing.orm.junit.SkipForDialect;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
@ -42,6 +44,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
@RequiresDialect(MySQLDialect.class)
@RequiresDialect(DB2Dialect.class)
@RequiresDialect(SQLServerDialect.class)
@SkipForDialect(dialectClass = TiDBDialect.class, reason = "TiDB does not support triggers")
public class SelectGeneratorTest {
@Test

View File

@ -17,6 +17,9 @@ import org.hibernate.testing.orm.junit.JiraKey;
import org.hibernate.testing.orm.junit.RequiresDialect;
import org.hibernate.testing.orm.junit.SessionFactory;
import org.hibernate.testing.orm.junit.SessionFactoryScope;
import org.hibernate.testing.orm.junit.SkipForDialect;
import org.hibernate.dialect.TiDBDialect;
import org.hibernate.tool.hbm2ddl.SchemaExport;
import org.hibernate.tool.schema.TargetType;
import org.junit.jupiter.api.Test;
@ -44,6 +47,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
@RequiresDialect(H2Dialect.class)
@RequiresDialect(DB2Dialect.class)
@RequiresDialect(SQLServerDialect.class)
@SkipForDialect(dialectClass = TiDBDialect.class, reason = "TiDB does not support triggers")
public class SelectGeneratorTest {
@Test