cziegeler 2003/08/18 06:00:47
Modified: . status.xml
src/blocks/databases/java/org/apache/cocoon/transformation
SQLTransformer.java
Log:
<action dev="CZ" type="fix" fixes-bug="12173">
Applying patch from Renaud Bruyeron ([EMAIL PROTECTED]) that fixes
the prematurely closing of the connection causing in the SQL Transformer.
</action>
Revision Changes Path
1.125 +5 -1 cocoon-2.1/status.xml
Index: status.xml
===================================================================
RCS file: /home/cvs/cocoon-2.1/status.xml,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -r1.124 -r1.125
--- status.xml 16 Aug 2003 14:37:06 -0000 1.124
+++ status.xml 18 Aug 2003 13:00:46 -0000 1.125
@@ -189,6 +189,10 @@
<changes>
<release version="@version@" date="@date@">
+ <action dev="CZ" type="fix" fixes-bug="12173">
+ Applying patch from Renaud Bruyeron ([EMAIL PROTECTED]) that fixes
+ the prematurely closing of the connection causing in the SQL Transformer.
+ </action>
<action dev="JH" type="update" fixes-bug="22479"
due-to="Mark Leicester" due-to-email="[EMAIL PROTECTED]">
Midi block: added transposition and inversion stylesheets and samples.
1.8 +4 -3
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.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- SQLTransformer.java 18 Jul 2003 14:46:30 -0000 1.7
+++ SQLTransformer.java 18 Aug 2003 13:00:46 -0000 1.8
@@ -1093,8 +1093,9 @@
transformer.getTheLogger().error( "Caught a SQLException", e
);
throw e;
} finally {
- conn.close();
- conn = null; // To make sure we don't use this
connection again.
+ // Not closing the connection here fixes bug 12173!
+ // conn.close();
+ // conn = null; // To make sure we don't use this
connection again.
}
}