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

correct error prompt for nonpositive length in Blob.setBytesX()

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.7.1.1
    • 10.7.1.1
    • JDBC
    • None

    Description

      In Blob.setBytesX(), when a nonpositive length value (len) is passed in, a SqlException with ClientMessageId of SQLState.BLOB_NONPOSITIVE_LENGTH is created, however, it uses length, a wrong length value, which is still zero here.

      if ( len < 0 )

      { throw new SqlException(agent_.logWriter_, new ClientMessageId(SQLState.BLOB_NONPOSITIVE_LENGTH), new Integer(length)); }

      Attachments

        1. init_length.diff
          0.8 kB
          Knut Anders Hatlen
        2. derby-4738.stat
          0.1 kB
          Yun Lee
        3. derby-4738.patch
          0.6 kB
          Yun Lee

        Issue Links

        Activity

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

          People

            yunlee Yun Lee
            yunlee Yun Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment