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
int count = metaData.getColumnCount();
columnData = new ColumnData[count+1];
and than the lenght of this array is returned as column
public int getColumnCount() throws SQLException
And we get wrong count of columns in resulset.
Log in to post a comment.