Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4639504

executeBatch batch does not work properly when passed an empty batch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.1
    • 1.4.1
    • core-libs
    • None
    • hopper
    • generic
    • generic

      The method Statement.executeBatch does not work properly when an empty batch of statements is passed. For example, when Statement.addBatch is executed several times followed by a clearBatch and then execute Statement.executeBatch, executeBatch should return an integer array with 0 length. However, the bridge if presently returning a null instead of an integer array with 0 length.

      Reference: jdbc/ee/batchUpdate/batchUpdateClient.java#testClearBatch02

            ssuryasunw Saikiran Surya (Inactive)
            ssuryasunw Saikiran Surya (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: