Hi everybody.
I've made some fixes to current CVS, and I'm posting it for review and
(probably) inclusion. What was done:
1. Added debug flag to compiler invocation in "compile" target.
2. Improved handling of negative and overflowed indexes in getColumn(int
index) method of CsvResultSet class.
3. Fixed bug in wasNull() method of CsvResultSet class. AFAIK construct
such as 'getString(lastIndexRead).equals(null)' never evaluates to true
- it's always false or throws NPE :-)
4. Changed CsvReader to return 'null' for columns that are missing in a
row - method getColumn(int columnIndex) of CsvReader class.
Patch included. Apply in CVS working copy root using:
$ zcat patch.gz | patch -p0
Comments? Questions?
Cheers.
Scooter.
--
Tomasz Skutnik, R&D Director, www.e-point.pl
tel +48 (22) 853 48 30, mob +48 501 555 705, fax +48 (22) 853 48 30
e-point S.A., ul. Filona 16, 02-658 Warsaw, Poland
PGP/GPG public key: http://scooter.ext.e-point.pl/tomasz.skutnik.gpg
|