HHH-15900 Fix failing tests on TiDB due to missing trigger support
This commit is contained in:
parent
04b77066df
commit
b68eacbb90
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue