cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/databases/java/org/apache/cocoon/transformation SQLTransformer.java
Date Mon, 06 Oct 2003 16:29:59 GMT
haul        2003/10/06 09:29:59

  Modified:    src/blocks/databases/java/org/apache/cocoon/transformation
                        SQLTransformer.java
  Log:
  fixes Bug 23235 XML in database field not handled properly by SQLTransformer reported by
dean.cording@kaz-group.com (Dean Cording)
  
  Revision  Changes    Path
  1.11      +7 -1      cocoon-2.1/src/blocks/databases/java/org/apache/cocoon/transformation/SQLTransformer.java
  
  Index: SQLTransformer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/databases/java/org/apache/cocoon/transformation/SQLTransformer.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- SQLTransformer.java	6 Oct 2003 16:24:16 -0000	1.10
  +++ SQLTransformer.java	6 Oct 2003 16:29:59 -0000	1.11
  @@ -1259,6 +1259,12 @@
                           // FIXME: bad coding "catch(Exception)"
                           // if an exception occured the data was not xml
                           transformer.data(value);
  +                    } finally {
  +                        // otherwise serializer won't be reset
  +                        if (transformer.compiler!=null){
  +                            manager.release(transformer.compiler);
  +                            transformer.compiler = null;
  +                        }
                       }
                   } else {
                       transformer.data(value);
  
  
  

Mime
View raw message