From a580227569fd4ec362b5d1b387801eabd8b24f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Tue, 27 Aug 2019 11:47:07 +0200 Subject: [PATCH] HHH-13582 Ignore LocalDateTest for MySQL MySQL ConnectorJ 8.x returns the wrong date when the JVM default timezone is different from the server timezone: https://bugs.mysql.com/bug.php?id=91112 --- .../test/java/org/hibernate/test/type/LocalDateTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/type/LocalDateTest.java b/hibernate-core/src/test/java/org/hibernate/test/type/LocalDateTest.java index 50a00f62c2..5f370c8b02 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/type/LocalDateTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/type/LocalDateTest.java @@ -23,6 +23,7 @@ import javax.persistence.Id; import org.hibernate.dialect.AbstractHANADialect; import org.hibernate.dialect.MariaDBDialect; +import org.hibernate.dialect.MySQL5Dialect; import org.hibernate.dialect.MySQLDialect; import org.hibernate.type.descriptor.sql.TimestampTypeDescriptor; @@ -34,7 +35,13 @@ import org.junit.runners.Parameterized; * Tests for storage of LocalDate properties. */ @TestForIssue(jiraKey = "HHH-10371") -@SkipForDialect(value = AbstractHANADialect.class, comment = "HANA systematically returns the wrong date when the JVM default timezone is not UTC") +@SkipForDialect(value = AbstractHANADialect.class, + comment = "HANA systematically returns the wrong date when the JVM default timezone is not UTC") +@SkipForDialect(value = MySQL5Dialect.class, + comment = "HHH-13582: MySQL ConnectorJ 8.x returns the wrong date" + + " when the JVM default timezone is different from the server timezone:" + + " https://bugs.mysql.com/bug.php?id=91112" +) public class LocalDateTest extends AbstractJavaTimeTypeTest { private static class ParametersBuilder extends AbstractParametersBuilder {