Uploaded image for project: 'Spring Data JDBC'
  1. Spring Data JDBC
  2. DATAJDBC-556

Javadoc for JdbcOperations.batchUpdate should mention negative values are possible

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 2.0 GA (Neumann)
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:

      Description

      In the spring java doc for this method, it says "Returns: an array of the number of rows affected by each statement". This statement is misleading because "The number of rows" would never be negative.

      However, this method could delegate to https://docs.oracle.com/javase/1.5.0/docs/api/java/sql/Statement.html#executeBatch() where negative values are possible, such as SUCCESS_NO_INFO/-2

      The Spring javadoc should make this clear. 

        Attachments

          Activity

            People

            Assignee:
            schauder Jens Schauder
            Reporter:
            chentong Tong Chen
            Last updater:
            Jens Schauder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: