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

ResultSet.getTimestamp() throws "Could not parse field as date" SQLException with "time" column

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.1.3
    • 1.1.4
    • None
    • None

    Description

      With a column of type "time", any attempt to read it with rs.getTimestamp() throws a SQLException with message "Could not parse field as date." This only occurs with the MariaDB JDBC driver; the same operation works without incident on the regular MySQL JDBC driver.

      Sample junit provided.

      Attachments

        Activity

          fyrewyld Jody Grassel created issue -
          wlad Vladislav Vaintroub made changes -
          Field Original Value New Value
          Assignee Rasmus Johansson [ ratzpo ] Vladislav Vaintroub [ wlad ]
          wlad Vladislav Vaintroub made changes -
          Priority Major [ 3 ] Minor [ 4 ]
          wlad Vladislav Vaintroub made changes -
          Fix Version/s jdbc-1.1.4 [ 13400 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow defaullt [ 27902 ] MariaDB v2 [ 47837 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 47837 ] MariaDB connectors [ 54996 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB connectors [ 54996 ] MariaDB v3 [ 70287 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 70287 ] MariaDB v4 [ 134687 ]

          People

            wlad Vladislav Vaintroub
            fyrewyld Jody Grassel
            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.