You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2014/07/16 19:38:05 UTC
[jira] [Resolved] (DBUTILS-110) ArrayHandler should return an empty
array when handle has no rows
[ https://issues.apache.org/jira/browse/DBUTILS-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benedikt Ritter resolved DBUTILS-110.
-------------------------------------
Resolution: Fixed
Fixed in r1611104
> ArrayHandler should return an empty array when handle has no rows
> -----------------------------------------------------------------
>
> Key: DBUTILS-110
> URL: https://issues.apache.org/jira/browse/DBUTILS-110
> Project: Commons DbUtils
> Issue Type: Improvement
> Affects Versions: 2.0
> Reporter: Sebb
> Assignee: Benedikt Ritter
> Fix For: 1.6
>
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)