Skip to content

Commit 01c3589

Browse files
jmartisksebersole
authored andcommitted
HHH-10196 DefaultGeneratedValueTest fails on MySQL
fix (cherry picked from commit 6ff0abf)
1 parent 513f11f commit 01c3589

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hibernate-core/src/test/java/org/hibernate/test/generated/DefaultGeneratedValueTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
import org.hibernate.annotations.GenerationTime;
2323
import org.hibernate.annotations.GeneratorType;
2424
import org.hibernate.annotations.UpdateTimestamp;
25+
import org.hibernate.dialect.MySQLDialect;
2526
import org.hibernate.dialect.SybaseDialect;
27+
import org.hibernate.testing.SkipForDialects;
2628
import org.hibernate.tuple.ValueGenerator;
2729

2830
import org.hibernate.testing.SkipForDialect;
@@ -42,7 +44,10 @@
4244
* @author Steve Ebersole
4345
* @author Gunnar Morling
4446
*/
45-
@SkipForDialect(value=SybaseDialect.class, comment="CURRENT_TIMESTAMP not supported as default value in Sybase")
47+
@SkipForDialects({
48+
@SkipForDialect(value = SybaseDialect.class, comment = "CURRENT_TIMESTAMP not supported as default value in Sybase"),
49+
@SkipForDialect(value = MySQLDialect.class, comment = "See HHH-10196", strictMatching = false)
50+
})
4651
public class DefaultGeneratedValueTest extends BaseCoreFunctionalTestCase {
4752

4853
@Test

0 commit comments

Comments
 (0)