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

Type java.time.Instant not supported type

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.4
    • 3.0.5
    • 2.7 compatibility
    • None
    • 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

            diego dupin Diego Dupin
            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.