joaoraf / log4jdbc-log4j2

Automatically exported from code.google.com/p/log4jdbc-log4j2
2 stars 3 forks source link

Exception "could not look up name" when retrieving a column data by the "table.column" name #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. For a query like "SELECT myTable.* FROM myTable"
2. do rs.getString("myTable.myColumn")

What is the expected output? What do you see instead?

We get an exception like this:

java.lang.RuntimeException: ResultSet.getXXX(colName): could not look up name
    at net.sf.log4jdbc.sql.resultsetcollector.DefaultResultSetCollector.setColIndexFromGetXXXMethodParams(DefaultResultSetCollector.java:261)
    at net.sf.log4jdbc.sql.resultsetcollector.DefaultResultSetCollector.methodReturned(DefaultResultSetCollector.java:197)
    at net.sf.log4jdbc.sql.jdbcapi.ResultSetSpy.reportAllReturns(ResultSetSpy.java:100)
    at net.sf.log4jdbc.sql.jdbcapi.ResultSetSpy.reportReturn(ResultSetSpy.java:192)
    at net.sf.log4jdbc.sql.jdbcapi.ResultSetSpy.getString(ResultSetSpy.java:2559)

What version of the product are you using? On what operating system?

log4jdbc-log4j2-jdbc3 version 1.16 on Windows

Please provide any additional information below.

Original issue reported on code.google.com by alarrego...@gmail.com on 4 Feb 2014 at 5:48

GoogleCodeExporter commented 9 years ago
Thank you for reporting this. The snapshot 1.17-SNAPSHOT has been released, let 
me know if it fixes the problem.

Original comment by frederic...@gmail.com on 11 Feb 2014 at 4:02