[CONJ-1026] timezone=auto option failure on non-fixed-offset zone machine Created: 2022-11-20 Updated: 2023-01-09 Resolved: 2023-01-09 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 3.0.9, 3.1.0 |
| Fix Version/s: | 3.0.10, 3.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Assaf Waizman | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
maria jdbc client 3.1.0 (happen with all 3.x versions) |
||
| Description |
|
When running mariadb server on UTC timezone machine (for my test i run mariadb docker image which run in UTC), the timezone=auto jdbc option seems to fail.
In this case, the org.mariadb.jdbc.client.impl.StandardClient.java throws the following exception:
Observing the code, it seems like a bug in how the client handles non-fixed-offset timezone:
in case the timezone is not fixedoffset, the appended session command will be time_zone=auto, which is not a valid timezone. Thus the server return with error. server variables: would u please verify? Thanks |