Opened 4 years ago

Closed 4 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 Changed 4 years ago by dmisev

  • Milestone set to 8.4.1

Patch submitted, thanks.

comment:2 Changed 4 years ago by dirk.daems@…

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

comment:3 Changed 4 years ago by dmisev

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.