Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2279 SerializableResultSetMetaData.getColumnCount

v4.0
closed-rejected
nobody
5
2005-03-12
2005-03-12
Evgeniy
No

Method getColumnCount of
SerializableResultSetMetaData class returns wrong
number of columns in resultset. It is as great as actual
count + 1 constantly. The problem is obvious - in
constructor internal array is created with the actual size
+ 1

int count = metaData.getColumnCount();
columnData = new ColumnData[count+1];

and than the lenght of this array is returned as column
count:

public int getColumnCount() throws SQLException
{
return columnData.length;
}

And we get wrong count of columns in resulset.

Discussion

  • Scott M Stark
    Scott M Stark
    2005-03-12

    • status: open --> closed-rejected
     
  • Scott M Stark
    Scott M Stark
    2005-03-12

    Logged In: YES
    user_id=175228

    All issues have been moved to http://jira.jboss.com. Existing
    issues have been moved. New issues will be closed with this
    canned reponse.