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

cancelRowUpdates() affects rows updated with updateRow() in scrollable updatable resultsets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.2.1.6
    • 10.2.1.6
    • JDBC, Network Client
    • None
    • Patch Available

    Description

      If an application does the following:

      rs.updateInt(1, newValueCol1);
      rs.updateRow();
      rs.updateInt(2, newValueCol2);
      rs.cancelRowUpdates();

      Then, when calling rs.getInt(1), it will return the old value. Instead it should return the new value.

      Workaround: after calling rs.updateRow(), the application could call rs.relative(0).

      This problem does not affect forward only resultsets, since after an updateRow() they get positoned before the next row, leaving it impossible to do anything with the current row.

      Attachments

        1. DERBY-1251v3.diff
          30 kB
          Andreas Korneliussen
        2. derbyall_report.txt
          4 kB
          Andreas Korneliussen
        3. DERBY-1251v2.diff
          31 kB
          Andreas Korneliussen
        4. DERBY-1251v2.stat
          0.3 kB
          Andreas Korneliussen
        5. DERBY-1251.diff
          13 kB
          Andreas Korneliussen
        6. DERBY-1251.stat
          0.3 kB
          Andreas Korneliussen
        7. derbyall_report.txt
          14 kB
          Andreas Korneliussen

        Activity

          People

            andreask Andreas Korneliussen
            andreask Andreas Korneliussen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: