commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DBUTILS-110) Inconsistent behaviour when handle has no rows
Date Tue, 14 May 2013 16:03:15 GMT
Sebb created DBUTILS-110:
----------------------------

             Summary: Inconsistent behaviour when handle has no rows
                 Key: DBUTILS-110
                 URL: https://issues.apache.org/jira/browse/DBUTILS-110
             Project: Commons DbUtils
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Sebb


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message