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

ArrayIndexOutOfBoundsException when attempt to getTime() from ResultSet

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.4
    • 3.0.6
    • Other
    • None
    • mariadb Ver 15.1 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
      mariadb-java-client version 3.0.4

    Description

      An ArrayIndexOutOfBoundsException is thrown when I'm retrieving value of a column of type TIME. But the problem only occurs when the value of the column is '00:00:00' and the option useServerPrepStmts set to true.

      The method ResultSet#getTime works perfectly when useServerPrepStmts = false or the value is different from '00:00:00' (for example : '02:10:00')

      Here is a JUnit test class which reproduces the bug.

      Attachments

        Activity

          People

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