From 7174b03a25e02d897477ba13e3250307c1bb722f Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 19 Jul 2018 13:26:52 +0200 Subject: [PATCH] HHH-12815 Remove the zeroDateTimeBehavior option It's useless for this test and it causes compatibility issues. --- .../LocalDateCustomSessionLevelTimeZoneTest.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/timestamp/LocalDateCustomSessionLevelTimeZoneTest.java b/hibernate-core/src/test/java/org/hibernate/test/timestamp/LocalDateCustomSessionLevelTimeZoneTest.java index 53a3a1225e..e96b512f0f 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/timestamp/LocalDateCustomSessionLevelTimeZoneTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/timestamp/LocalDateCustomSessionLevelTimeZoneTest.java @@ -47,13 +47,7 @@ public class LocalDateCustomSessionLevelTimeZoneTest url += "&"; } - String zeroDateTimeBehavior = "convertToNull"; - - if ( Dialect.getDialect() instanceof MySQL8Dialect ) { - zeroDateTimeBehavior = "CONVERT_TO_NULL"; - } - - url += "zeroDateTimeBehavior=" + zeroDateTimeBehavior + "&useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Europe/Berlin"; + url += "useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Europe/Berlin"; configurationValues.put( AvailableSettings.URL, url); super.configure( configurationValues );