[CONJ-65] implement serverTimezone JDBC connection string parameter Created: 2013-09-18 Updated: 2016-01-05 Resolved: 2013-09-20 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | None |
| Affects Version/s: | 1.1.5 |
| Fix Version/s: | 1.1.6 |
| Type: | Task | Priority: | Major |
| Reporter: | Mikhail Olkhovskiy | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
I suggest to implement JDBC connection string parameter serverTimezone. I have tried to implement this feature. In attachment you can find patch. |
| Comments |
| Comment by Vladislav Vaintroub [ 2013-09-19 ] |
|
Would not "time_zone" server session variable be a viable alternative? If not, why not? |
| Comment by Vladislav Vaintroub [ 2013-09-19 ] |
|
Also, JDBC provides several ResultSet.getXXX methods that have Calendar parameter (getDate.getTime,getTimestamp),and PreparedStatement has corresponding setXXX methods. |
| Comment by Mikhail Olkhovskiy [ 2013-09-19 ] |
|
We store dates in DATETIME |
| Comment by Mikhail Olkhovskiy [ 2013-09-19 ] |
|
Yes, It is possible to use setXXX methods with Calendar. But we use ORM (EclipseLink) and we need to write adapter for MariaDB JDBC to call setXX methods with Calendar. |