Skip to content
New issue

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

add support for getObject(n, java.time.LocalDateTime.class) #744

Closed
gordthompson opened this issue Jul 11, 2018 · 0 comments
Closed

add support for getObject(n, java.time.LocalDateTime.class) #744

gordthompson opened this issue Jul 11, 2018 · 0 comments

Comments

@gordthompson
Copy link
Contributor

(Continuation of #339. Also prompted by this Stack Overflow question.)

As of mssql-jdbc-6.5.4.jre8-preview.jar the driver still does not support the following statement when retrieving a value from a datetime2 column

java.time.LocalDateTime x = rs.getObject(1, java.time.LocalDateTime.class);

failing with

com.microsoft.sqlserver.jdbc.SQLServerException: The conversion to class java.time.LocalDateTime is unsupported.

If the objective is to support Java 8 then the driver really should be able to handle this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant