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

resultSet getLong() for BIGINT column fails if value is Long.MIN_VALUE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.5
    • Fix Version/s: 1.5.6
    • Component/s: Other
    • Labels:
      None

      Description

      Affects latest release 1.5.5, problem does not seem to occur in 1.5.4

      Repro Steps:
      Column is defined as BIGINT
      insert row where column has Long.MIN_VALUE value
      Select all rows, call resultSet.getLong(column number) for BIGINT column

      Expected:
      long value equal to Long.MIN_VALUE to be returned

      Actual:
      java.sql.SQLException: Out of range value for column 'mybigintcol' : value -9223372036854775808 is not in Long range

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            mmadson Matthew
            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.