Bug #93059 server timezone gets applied in PreparedStatment but not when reading ResultSet
| Submitted: | 2 Nov 2018 11:59 | Modified: | 3 Dec 2018 22:57 |
|---|---|---|---|
| Reporter: | Mark Struberg | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | Connector / J | Severity: | S2 (Serious) |
| Version: | 8.0.13 | OS: | Any |
| Assigned to: | Filipe Silva | CPU Architecture: | Any |
| Tags: | jdbc, timezone | ||
[2 Nov 2018 11:59]
Mark Struberg
[2 Nov 2018 12:24]
Mark Struberg
Just did run my test with connectorJ 5.1.47 and it works perfectly fine.
[2 Nov 2018 12:33]
Mark Struberg
A possible solution would be to perform the timezone adjustment _only_ in MySqlFieldTypes.DATETIME and TIMESTAMP. But leave it as is for DATE columns.
[3 Dec 2018 22:57]
Filipe Silva
Hi Mark, Thank you for your interest in MySQL and Connector/J. My apologies for taking so long to reply to this report. This may or may not be a bug, depending on your interpretation of the JDBC specification and Java documentation. As of now, I'm considering this report as a duplicate of Bug#91112, where you can find some more details about this issue. Please share your thoughts with us on this other bug report.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.042 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.