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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: 1.1.3
    • Component/s: None
    • Labels:
      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.

        Gliffy Diagrams

          Activity

          Hide
          wlad Vladislav Vaintroub added a comment -

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

          Show
          wlad Vladislav Vaintroub added a comment - changed bug title to describe the actual bug (it was not about Types.TIMESTAMP

            People

            • Assignee:
              wlad Vladislav Vaintroub
              Reporter:
              framas Frank S
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: