Open Glusk opened 4 years ago
@glusk2/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot!
@yegor256 What do you think? With better JSR310 support, Utc
wouldn't be necessary .
@Glusk @andreoss I agree. But we will have to release a new major version of jcab-jdbc, I believe.
@Glusk
After looking into the details it appears that
1) The current version of pgjdbc
does not support Instant
https://github.com/pgjdbc/pgjdbc/issues/1325
2) H2 does support Instant but only in the latest version
3) MaridDB/MySQL Connector does not support Instant
@andreoss
Looking at this page, JDBC 4.2 spec seems to be supported by the most up to date Connector/J version.
This SO answer claims that there is support for Instant
in pgjdbc
On the other hand I've also come across this:
FYI,
Instant
is not supported by JDBC at all. From this comment
I clearly don't know enough about this.
Utc should be removed from source.
According to this SO answer, SQL timestamps should be set and queried via the Instant class:
...and…
It should be documented in the
README.md
that one should work withInstant
objects whenever trying to set or query ajava.sql.Timestamp
.