Uploaded image for project: 'Commons DbUtils'
  1. Commons DbUtils
  2. DBUTILS-110

ArrayHandler should return an empty array when handle has no rows

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 1.6
    • Labels:
      None

      Description

      ArrayHandler#handle returns null if there are no rows.

      However ArrayListHandler#handle returns an empty list, as do all the other implementations that return a collection.

      It would be more consistent if ArrayHandler#handle returned an empty array.

      Note: for implementations of ResultSetHandler that return a single object, rather than an array or collection, returning null does make sense.

        Attachments

          Activity

            People

            • Assignee:
              britter Benedikt Ritter
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: