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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment