We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify code using java.util.Date, java.util.Calendar, java.util.GregorianCalendar to use the newer java.time API.
The text was updated successfully, but these errors were encountered:
https://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html
Sorry, something went wrong.
The comment in this thread under "tl;dr" is pretty helpful: https://stackoverflow.com/questions/8530545/java-sql-date-time
Discovered that H2 is a JDBC 4.1 driver, not 4.2 so using
LocalDateTime ldt = myResultSet.getObject( … , LocalDateTime.class ) ;
is not an option and throws a 'java.sql.SQLFeatureNotSupportedException: Not supported yet.' exception.
Can check driver numbers with:
connection.getMetaData().getJDBCMajorVersion() connection.getMetaData().getJDBCMinorVersion()
Will likely have to support String conversions for now or convert from/to epoch/milliseconds.
No branches or pull requests
Modify code using java.util.Date, java.util.Calendar, java.util.GregorianCalendar to use the newer java.time API.
The text was updated successfully, but these errors were encountered: