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

NumberFormatException for getString from BigInt

    XMLWordPrintable

Details

    Description

      In version 1.3.2 the handling of reading DOUBLE values with ResultSet.getString() has broken in version 1.3.3. The return value from the getString()-method is now change, so the Long.parseLong() throwing a NumberFormatException.

      // 1449576922917
      String value = queryResult.getString("index");
      Long.parseLong(value)

      //"1.449576736113E12"
      String value = queryResult.getString("index");
      Long.parseLong(value)

      Attachments

        Activity

          People

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