JeonYB / log4jdbc-remix

Automatically exported from code.google.com/p/log4jdbc-remix
1 stars 0 forks source link

DefaultResultSetCollector do not collect getter calls for Boolean. #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Activate resultsettable logging
2. fetch a boolean from resultset via rs.getBoolean(x).
3. in the log the column will be reported [unread]

What is the expected output? What do you see instead?
colunm is reported unread, instead of false / true

What version of the product are you using? On what operating system?
log4jdbc-remix 0.2.5, win7 hp

Please provide any additional information below.

Original issue reported on code.google.com by ske...@gmail.com on 25 Nov 2011 at 11:19

GoogleCodeExporter commented 8 years ago
It seems that the static GETTERS List:

private static final List<String> GETTERS = Arrays.asList(new String[] { 
"getString", "getLong", "getInt", "getDate", "getTimestamp", "getTime",
      "getBigDecimal", "getFloat", "getDouble", "getByte", "getShort", "getObject", });

is missing a "getBoolean" item.

Original comment by ske...@gmail.com on 25 Nov 2011 at 11:20

GoogleCodeExporter commented 8 years ago

Original comment by tim.azzo...@gmail.com on 26 Nov 2011 at 1:07

GoogleCodeExporter commented 8 years ago
Hi sker65

Thank you for finding the bug and suggesting the solution.

Its fixed in release 0.2.6.

Merci mille fois!

Original comment by tim.azzo...@gmail.com on 26 Nov 2011 at 2:03