executeBatch batch does not work properly when passed an empty batch

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.1
    • Affects Version/s: 1.4.1
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: