Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-383

`select name as foo_name' - > RowSetDynaClass detects false column name which causes java.sql.SQLException: Column 'name' not found.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.3
    • 2.0.0
    • None
    • None
    • gentoo linux 64 bit

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ufk Kfir Ozer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: