3 Replies Latest reply on May 12, 2006 10:41 AM by Brice Ruth

    bug in ConverterEnumType?

    Thom Chode Newbie

      I'm using oracle 9.2i with the native oracle jdbc driver and I think I've come across a bug. This is in the ConverterEnumType class in the nullSafeGet method. Basically, the resultSet.getString(names[0]) appends a space to the end of the value. The value in the database is 'R' (datatype is CHAR(1)). When I get the value of converterDatabaseId it is "R " (with a following space). It seems like the bug is in the oracle jdbc driver, but I'm wondering if its possible to have a workaround added to the jbpm code to do a .trim() on that value? I tried the datadirect trial jdbc driver and it did not append the space.


      public Object nullSafeGet(ResultSet resultSet, String[] names, Object owner) throws HibernateException, SQLException {
      String converterDatabaseId = resultSet.getString(names[0]);
      return Converters.getConverterByDatabaseId(converterDatabaseId);
      }