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

JDBC.assertRowInResultSet compares the wrong value if using trimmed strings and a SMALLINT column exists.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.3.1.4
    • 10.3.1.4
    • Test
    • None

    Description

      There is a bug in assertRowInResultSet where a path through the loop does not set the variable obj.
      This leads to it being compared with the previous value.

      Using locally scoped variables within the loop would have most likely caught this bug at development time.
      Then the compiler sees that obj has one uninitialzed path through the code and throws an error.

      Attachments

        1. derby2052_diff.txt
          2 kB
          Daniel John Debrunner

        Activity

          People

            djd Daniel John Debrunner
            djd Daniel John Debrunner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: