MariaDB Client Library for Java Applications
  1. MariaDB Client Library for Java Applications
  2. CONJ-40

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: jdbc-1.1.1
    • Fix Version/s: jdbc-1.1.3
    • Labels:
      None
    • Global Rank:
      3063

      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.

        Activity

        Hide
        Vladislav Vaintroub added a comment -

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: