JDBCDynaClass "lowerCase" option causes problems in RowSetDynaClass
-------------------------------------------------------------------

                 Key: BEANUTILS-289
                 URL: https://issues.apache.org/jira/browse/BEANUTILS-289
             Project: Commons BeanUtils
          Issue Type: Bug
          Components: DynaBean
    Affects Versions: 1.7.0
            Reporter: Niall Pemberton
             Fix For: 1.8.0


JDBCDynaClass / RowSetDynaClass has an option to convert the column names to 
lower case when creating the associated DynaProperty - this causea a problem in 
RowSetDynaClass's rows() method which uses the DynaProperty name to access the 
column value in the ResultSet. I can only think no-one is really using this 
since its been this way since created (over 4 years ago) - otherwise everyone 
is using lower case column names in the database anyway!

The proxy TestResultSet and TestResultSetMetaData implementations used by 
DynaRowSetTestCase are hacked by using normal case in the meta data - but lower 
case in the result set.

Since the DynaProperties are created in column index order - I suggest changing 
rows() to use the column index, rather than DynaProperty name.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to