cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/transformation SQLTransformer.java
Date Tue, 21 May 2002 09:41:54 GMT
cziegeler    02/05/21 02:41:54

  Modified:    src/java/org/apache/cocoon/transformation
                        SQLTransformer.java
  Log:
  Fixed Bug in SQLTransformer when doing INSERT or UPDATE
  PR: 9105
  Submitted by: jens.lorenz@interface-business.de (Jens Lorenz)
  
  Revision  Changes    Path
  1.12      +5 -5      xml-cocoon2/src/java/org/apache/cocoon/transformation/SQLTransformer.java
  
  Index: SQLTransformer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/transformation/SQLTransformer.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- SQLTransformer.java	18 Apr 2002 16:26:48 -0000	1.11
  +++ SQLTransformer.java	21 May 2002 09:41:54 -0000	1.12
  @@ -85,7 +85,7 @@
    * @author <a href="mailto:giacomo.pati@pwr.ch">Giacomo Pati</a>
    *         (PWR Organisation & Entwicklung)
    * @author <a href="mailto:sven.beauprez@the-ecorp.com">Sven Beauprez</a>
  - * @version CVS $Id: SQLTransformer.java,v 1.11 2002/04/18 16:26:48 nicolaken Exp $
  + * @version CVS $Id: SQLTransformer.java,v 1.12 2002/05/21 09:41:54 cziegeler Exp $
    */
   
   public class SQLTransformer
  @@ -1125,8 +1125,8 @@
   
           protected String getColumnValue( int i ) throws SQLException {
               String retval =  transformer.getStringValue( rs.getObject( i ) );
  -            if (rs.getMetaData().getColumnType(i) == 8) 
  -		retval = transformer.getStringValue( rs.getBigDecimal( i ) );
  +            if (rs.getMetaData().getColumnType(i) == 8)
  +        retval = transformer.getStringValue( rs.getBigDecimal( i ) );
               return retval;
           }
   
  @@ -1135,7 +1135,7 @@
           //as this function is only called for ancestor lookups.
           protected String getColumnValue( String name ) throws SQLException {
               String retval =  transformer.getStringValue( rs.getObject( name ) );
  -//          if (rs.getMetaData().getColumnType( name ) == 8) 
  +//          if (rs.getMetaData().getColumnType( name ) == 8)
   //		retval = transformer.getStringValue( rs.getBigDecimal( name ) );
               return retval;
           }
  @@ -1144,7 +1144,7 @@
               // if rv is not -1, then an SQL insert, update, etc, has
               // happened (see JDBC docs - return codes for executeUpdate)
               if ( rv != -1 )
  -                return true;
  +                return false;
               try {
                   if ( rs == null || !rs.next() ) {
                       //close();
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message