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 20, 2019
1 parent ae1d083 commit 190cee3
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.NativeEnableAllCharsetsBuildItem;
import io.quarkus.deployment.builditem.NativeEnableAllTimeZonesBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;

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

@BuildStep
NativeEnableAllTimeZonesBuildItem enableAllTimeZones() {
return new NativeEnableAllTimeZonesBuildItem();
}
}
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 190cee3

Please sign in to comment.