Opened 11 years ago

Closed 11 years ago

#350 closed enhancement (fixed)

Wrong usage of getFetchSize() method in DbMetadataSource class

Reported by: Dirk Daems Owned by: abeccati
Priority: major Milestone: 8.4.1
Component: petascope Version: 8.4
Keywords: Cc:
Complexity: Medium

Description

The getFetchSize() method of a java.sql.ResultSet is used the wrong way at several places in the DbMetadataSource class.

The getFetchSize() method of a java.sql.ResultSet doesn't return the size of the result set, but returns the number of rows (as a hint) the JDBC driver should fetch. As a consequence, I get warnings in my logfile indicating that multiple CRSs are associated with one axis, which is not the case.

So the usage of getFetchSize() should be replaced in the DbMetadataSource class (and possibly in other Petascope classes as well).

Change History (3)

comment:1 by Dimitar Misev, 11 years ago

Milestone: 8.4.1

Patch submitted, thanks.

comment:2 by Dirk Daems, 11 years ago

I can confirm that this is fixed in the latest version.

comment:3 by Dimitar Misev, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.