Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-959

Type java.time.Instant not supported type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.0.5
    • Component/s: 2.7 compatibility
    • Labels:
      None
    • Environment:
      MariaDB 10.4.18 Docker Image

      Description

      Using MariaDB Java Client version 3.0.4 (and latest Spring Data JPA/Hibernate), we get following exception:

      java.sql.SQLException: Type java.time.Instant not supported type
      	at org.mariadb.jdbc.BasePreparedStatement.setInternalObject(BasePreparedStatement.java:1084)
      	at org.mariadb.jdbc.BasePreparedStatement.setObject(BasePreparedStatement.java:625)

      underlying query:

      UPDATE xyz SET creation_date = ? where foo=?

      Was working with MariaDB Java Client 2.7.5 (and all older 2.x versions).

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            pneyer Patrick Neyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.