Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6881

Implement the applicable Date/Time features from JDBC 4.2

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.2.0, 5.1.3
    • 5.2.0, 5.1.4
    • core
    • None
    • Phoenix now supports setting and retrieving java.time.LocalDate, java.time.LocalDateTime and java.time.LocalTime objects via the ResultSet.getObject() and PreparedStatement.setObject() APIs, as defined by JDBC 4.2

    Description

      https://jcp.org/aboutJava/communityprocess/maintenance/jsr221/JDBC4.2MR-January2014.pdf

      This mosty means handling the java.time.Local* types in get/setObject.
      The java.time.Offset types are probably not relevant to to Phoenix.

      Java 8 includes JDBC 4.2, and the version of the spec is available at

      https://download.oracle.com/otndocs/jcp/jdbc-4_2-mrel2-spec/

      JDBC 4.3 is added in Java 9, but the changes there don't seem to be relevant to time handling.

      Attachments

        Issue Links

          Activity

            People

              stoty Istvan Toth
              stoty Istvan Toth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: