commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kfir Ozer (JIRA)" <j...@apache.org>
Subject [jira] Created: (BEANUTILS-383) `select name as foo_name' - > RowSetDynaClass detects false column name which causes java.sql.SQLException: Column 'name' not found.
Date Thu, 25 Nov 2010 09:34:14 GMT
`select name as foo_name' - > RowSetDynaClass detects false column name which causes java.sql.SQLException:
Column 'name' not found. 
-------------------------------------------------------------------------------------------------------------------------------------

                 Key: BEANUTILS-383
                 URL: https://issues.apache.org/jira/browse/BEANUTILS-383
             Project: Commons BeanUtils
          Issue Type: Bug
    Affects Versions: 1.8.3
         Environment: gentoo linux 64 bit
            Reporter: Kfir Ozer


Hello.

If i have the following query:
'select game.name as game_name from games'

and i use RowSetDynaClass to fetch a list of DynaBeans from the result set, i get the following
error:

    ERROR c.x.xpofacebook.mysql.MysqlDb - stack trace: java.sql.SQLException: Column 'name'
not found.

it seems that the RowSetDynaClass fetches the column names as their original names and does
not consider column names modification with the 'as' keyword.

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


Mime
View raw message