Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2425

ResultSetMetaData.getColumnDisplaySize() returns a negative value for BLOB columns for client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.1.4
    • 10.3.1.4
    • Network Client
    • None

    Description

      Client getColumnDisplaySize on a BLOB(1G) column returns
      -2147483648

      embedded returns 2147483647

      In client, the issue is that for binary values it multiplies the length * 2 and this overflows the int range.
      return (int) (2 * sqlLength_[column - 1]);

      Attachments

        1. derby2425.diff
          1 kB
          Mayuresh Nirhali

        Activity

          People

            mayureshnirhali Mayuresh Nirhali
            kmarsden Katherine Marsden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: