Skip to content

Commit

Permalink
fix(mysql): Timezone mappings missing for Mysql JDBC driver in native…
Browse files Browse the repository at this point in the history
… mode

This fixes the issue by enabling all timezones by default when we have mysql extension

Fixes #5269
  • Loading branch information
machi1990 committed Nov 29, 2019
1 parent 79b8153 commit c1f3e5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.NativeImageEnableAllCharsetsBuildItem;
import io.quarkus.deployment.builditem.NativeImageEnableAllTimeZonesBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;

public class JDBCMySQLProcessor {
Expand All @@ -20,4 +21,9 @@ NativeImageResourceBuildItem resource() {
NativeImageEnableAllCharsetsBuildItem enableAllCharsets() {
return new NativeImageEnableAllCharsetsBuildItem();
}

@BuildStep
NativeImageEnableAllTimeZonesBuildItem enableAllTimeZones() {
return new NativeImageEnableAllTimeZonesBuildItem();
}
}
2 changes: 1 addition & 1 deletion integration-tests/jpa-mysql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<description>Module that contains JPA related tests running with the MySQL database</description>

<properties>
<mysql.url>jdbc:mysql://localhost:3306/hibernate_orm_test?serverTimezone=UTC</mysql.url>
<mysql.url>jdbc:mysql://localhost:3306/hibernate_orm_test</mysql.url>
</properties>

<dependencies>
Expand Down

0 comments on commit c1f3e5b

Please sign in to comment.