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

Connector cannot handle java.util.Date in PreparedStatement.setObject

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 1.1.3
    • None
    • None

    Description

      The member public void setObject(final int parameterIndex, final Object x, final int targetSqlType) throws SQLException in class
      org.mariadb.jdbc.MySQLPreparedStatement.

      fails when called with setObject(1, new Date(), Types.TIMESTAMP)

      In the case statements of the function TIMESTAMP is not considered.

      Attachments

        Activity

          framas Frank S created issue -
          wlad Vladislav Vaintroub made changes -
          Field Original Value New Value
          Assignee Rasmus Johansson [ ratzpo ] Vladislav Vaintroub [ wlad ]
          wlad Vladislav Vaintroub made changes -
          Summary Client Connector cannot handle java.sql.Type.TIMESTAMP Connector cannot handle java.util.Date in PreparedStatement.setO
          wlad Vladislav Vaintroub made changes -
          Summary Connector cannot handle java.util.Date in PreparedStatement.setO Connector cannot handle java.util.Date in PreparedStatement.setObject
          wlad Vladislav Vaintroub made changes -
          Fix Version/s jdbc-1.1.3 [ 13100 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]

          changed bug title to describe the actual bug (it was not about Types.TIMESTAMP

          wlad Vladislav Vaintroub added a comment - changed bug title to describe the actual bug (it was not about Types.TIMESTAMP
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow defaullt [ 27526 ] MariaDB v2 [ 47897 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 47897 ] MariaDB connectors [ 54942 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB connectors [ 54942 ] MariaDB v3 [ 70145 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 70145 ] MariaDB v4 [ 134680 ]

          People

            wlad Vladislav Vaintroub
            framas Frank S
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.