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

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.5.5
    • 1.5.6
    • Other
    • 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

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