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

Network client: updateRow() causes a commit when autoCommit = true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.0.2.2, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6
    • 10.2.1.6
    • Network Client
    • None
    • Java Version: 1.5.0_01
      Java Vendor: Sun Microsystems Inc.
      Java home: /usr/jdk/instances/jdk1.5.0/jre
      Java classpath: classes
      OS name: SunOS
      OS architecture: x86
      OS version: 5.10

    Description

      On the network client driver, the ResultSet method updateRow makes the transaction commit, when autocommit is true. The correct behavior is to commit only when the result set is closed. This works correctly in the embedded driver.

      The repro case is uploaded as an attachment "testCSUpdateRowCommits.java".

      Output (repro case):
      updateRow() should not commit
      Value: 16, expected value 1. Should not have committed updateRow()

      Attachments

        1. testCSUpdateRowCommits.java
          2 kB
          Fernanda Pizzorno
        2. 611.diff.3
          15 kB
          Dag H. Wanvik
        3. 611.stat.3
          0.6 kB
          Dag H. Wanvik

        Activity

          People

            dagw Dag H. Wanvik
            fernanda Fernanda Pizzorno
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: