Description
If one wants to slurp a "ResultSet" into a "RowSetDynaClass", one may want to use JDBC column labels instead of the JDBC column names.
The constructor of RowSetDynaClass takes the ResultSet, and slurps it in one operation, using the JDBC column names by default.
This operation is controlled by a boolean "useColumnLabel" telling whether to use column names of column labels. A setter,
RowSetDynaClass.setUseColumnLabel()
allows one to set that boolean.
However, as the boolean is used at construction time only, the setter is useless. Instead, the "useColumnLabel" flag should be passed to the constructor!
Attachments
Issue Links
- is related to
-
BEANUTILS-383 `select name as foo_name' - > RowSetDynaClass detects false column name which causes java.sql.SQLException: Column 'name' not found.
- Open
-
BEANUTILS-344 Method createDynaProperty of JDBCDynaClass should first look for column label instead of column name in ResultSetMetadata object..
- Closed