From 6ff0abf682637004e6fca1cdb679e27642c4afcc Mon Sep 17 00:00:00 2001 From: Jan Martiska Date: Thu, 15 Oct 2015 14:12:45 +0200 Subject: [PATCH] HHH-10196 DefaultGeneratedValueTest fails on MySQL fix --- .../test/generated/DefaultGeneratedValueTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/generated/DefaultGeneratedValueTest.java b/hibernate-core/src/test/java/org/hibernate/test/generated/DefaultGeneratedValueTest.java index 1ad516b2d2..a8e414fcfa 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/generated/DefaultGeneratedValueTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/generated/DefaultGeneratedValueTest.java @@ -22,7 +22,9 @@ import org.hibernate.annotations.Generated; import org.hibernate.annotations.GenerationTime; import org.hibernate.annotations.GeneratorType; import org.hibernate.annotations.UpdateTimestamp; +import org.hibernate.dialect.MySQLDialect; import org.hibernate.dialect.SybaseDialect; +import org.hibernate.testing.SkipForDialects; import org.hibernate.tuple.ValueGenerator; import org.hibernate.testing.SkipForDialect; @@ -42,7 +44,10 @@ import static org.junit.Assert.assertTrue; * @author Steve Ebersole * @author Gunnar Morling */ -@SkipForDialect(value=SybaseDialect.class, comment="CURRENT_TIMESTAMP not supported as default value in Sybase") +@SkipForDialects({ + @SkipForDialect(value = SybaseDialect.class, comment = "CURRENT_TIMESTAMP not supported as default value in Sybase"), + @SkipForDialect(value = MySQLDialect.class, comment = "See HHH-10196", strictMatching = false) +}) public class DefaultGeneratedValueTest extends BaseCoreFunctionalTestCase { @Test