You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Daniel John Debrunner (JIRA)" <de...@db.apache.org> on 2005/10/13 20:38:06 UTC

[jira] Closed: (DERBY-404) org.apache.derby.iapi.store.access.RowUtil.isRowEmpty has (never exercised) bug

     [ http://issues.apache.org/jira/browse/DERBY-404?page=all ]
     
Daniel John Debrunner closed DERBY-404:
---------------------------------------


> org.apache.derby.iapi.store.access.RowUtil.isRowEmpty has (never exercised) bug
> -------------------------------------------------------------------------------
>
>          Key: DERBY-404
>          URL: http://issues.apache.org/jira/browse/DERBY-404
>      Project: Derby
>         Type: Bug
>   Components: Store
>     Reporter: Daniel John Debrunner
>     Assignee: Daniel John Debrunner
>     Priority: Trivial
>      Fix For: 10.2.0.0

>
> isRowEmpty() has a bug where if a colum list is passed in it will return true rather than false for a non-empty row. However the method is never called with a non-null column list.
> One fix would be to remove the parameter columnList, but that leaves a method that is reallt just a check for the array reference being null  or of zero length [then the method could be generalized to any array type].
> An alternate fix would be change the api for the methods that call this utility to only accept non-null references. Callers that previously passed in null would pass in the constant RowUtil.EMPTY_ROW. This would remove the need to call isEmptyRow and remove the amount of branching. Sanity checks could be added for passing in null, or will just implicity be there as the array will be referenced and throw an NPE.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira