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

RowSetDynaClass fails to copy ResultSet to DynaBean with Oracle 10g JDBC driver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.8.0
    • DynaBean
    • None
    • Operating System: Windows XP
      Platform: All

    • 39343

    Description

      Beginning in Oracle 9.2, DATE is mapped to Date and TIMESTAMP is mapped to
      Timestamp. However if you were relying on DATE values to contain time
      information, there is a problem. When using Oracle 10g JDBC driver, the
      ResultSetMetaData.getColumnClassName returns java.sql.Timestamp but
      ResultSet.getObject(name).getClass() returns java.sql.Date. Obviously these two
      do not match each other. When the RowSetDynaClass.copy function tries to set the
      value to BasicDynaBean, it throws exception. Need a workaround.

      Attachments

        1. beanutils-142-oracle-bug.patch
          5 kB
          Niall Pemberton
        2. Play.java
          2 kB
          Henri Yandell
        3. Beanutils-142.patch
          0.8 kB
          Niall Pemberton

        Activity

          People

            bayard Henri Yandell
            cybertriton@gmail.com Li Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: