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

Client returns -1 on Statement.getUpdateCount when a procedure is called, embedded returns 0.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Network Client
    • None
    • Deviation from standard, Embedded/Client difference

    Description

      I think embedded is correct here, -1 should be used for when there are no more results left,
      cf Javadoc http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Statement.html#getUpdateCount():

      "if the result is a ResultSet object or there are no more results, -1 is returned."
      I attach a repro in the form of a Derby Junit test.

      Attachments

        1. Derby4316Repro.java
          2 kB
          Dag H. Wanvik

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dagw Dag H. Wanvik
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: