db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer RowReaderDefaultImpl.java
Date Tue, 25 Oct 2005 23:50:15 GMT
arminw      2005/10/25 16:50:15

  Modified:    src/java/org/apache/ojb/broker/accesslayer Tag:
                        OJB_1_0_RELEASE RowReaderDefaultImpl.java
  Log:
  allow field conversion for discriminator column
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.30.2.10 +3 -3      db-ojb/src/java/org/apache/ojb/broker/accesslayer/RowReaderDefaultImpl.java
  
  Index: RowReaderDefaultImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/RowReaderDefaultImpl.java,v
  retrieving revision 1.30.2.9
  retrieving revision 1.30.2.10
  diff -u -r1.30.2.9 -r1.30.2.10
  --- RowReaderDefaultImpl.java	25 Oct 2005 23:46:06 -0000	1.30.2.9
  +++ RowReaderDefaultImpl.java	25 Oct 2005 23:50:15 -0000	1.30.2.10
  @@ -266,9 +266,9 @@
           }
           try
           {
  -            String result = (String) fld.getJdbcType().getObjectFromColumn(rs, fld.getColumnName());
  +            Object tmp = fld.getJdbcType().getObjectFromColumn(rs, fld.getColumnName());
               // allow field-conversion for discriminator column too
  -            result = (String) fld.getFieldConversion().sqlToJava(result);
  +            String result = (String) fld.getFieldConversion().sqlToJava(tmp);
               result = result != null ? result.trim() : null;
               if (result == null || result.length() == 0)
               {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message