Derby
  1. Derby
  2. DERBY-4738

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.7.1.1
    • Fix Version/s: 10.7.1.1
    • Component/s: JDBC
    • Labels:
      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)); }
      1. derby-4738.patch
        0.6 kB
        Yun Lee
      2. derby-4738.stat
        0.1 kB
        Yun Lee
      3. init_length.diff
        0.8 kB
        Knut Anders Hatlen

        Issue Links

          Activity

          Yun Lee created issue -
          Yun Lee made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          Yun Lee made changes -
          Attachment derby-4738.patch [ 12448962 ]
          Attachment derby-4738.stat [ 12448963 ]
          Yun Lee made changes -
          Issue & fix info [Patch Available]
          Knut Anders Hatlen made changes -
          Summary correct erorr prompt for nonpositive length in Blob.setBytesX() correct error prompt for nonpositive length in Blob.setBytesX()
          Component/s JDBC [ 11407 ]
          Knut Anders Hatlen made changes -
          Affects Version/s 10.7.0.0 [ 12314971 ]
          Issue & fix info [Patch Available]
          Knut Anders Hatlen made changes -
          Attachment init_length.diff [ 12448999 ]
          Knut Anders Hatlen made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Fix Version/s 10.7.0.0 [ 12314971 ]
          Resolution Fixed [ 1 ]
          Yun Lee made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Myrna van Lunteren made changes -
          Link This issue is part of DERBY-4609 [ DERBY-4609 ]
          Rick Hillegas made changes -
          Affects Version/s 10.7.1.1 [ 12315564 ]
          Affects Version/s 10.7.1.0 [ 12314971 ]
          Fix Version/s 10.7.1.1 [ 12315564 ]
          Fix Version/s 10.7.1.0 [ 12314971 ]
          Gavin made changes -
          Workflow jira [ 12515208 ] Default workflow, editable Closed status [ 12799721 ]

            People

            • Assignee:
              Yun Lee
              Reporter:
              Yun Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development