Skip to content

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

@gordthompson

Description

@gordthompson

(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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions