You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by kesha <ke...@cosite.com> on 2001/06/08 21:27:16 UTC

SQLTransformer

I've noticed that the current cvs version of SQLTransformer allways returns
empty result. Looking at the source code I've discovered that after
invocation of executeQuery you close returned ResultSet and set it to null
in the finally block. I'm sure that this is incorrect behavior. Could
somebody to take a look at it?

kesha

RCS file:
/home/cvspublic/xml-cocoon2/src/org/apache/cocoon/transformation/SQLTransfor
mer.java,v

retrieving revision 1.6

diff -u -r1.6 SQLTransformer.java

--- SQLTransformer.java 2001/06/07 06:15:39 1.6

+++ SQLTransformer.java 2001/06/08 19:21:56

@@ -562,7 +562,7 @@

} catch (ComponentException cme) {

transformer.getTheLogger().error("Could not use connection: " + connection,
cme);

} finally {

- close();

+// close();

if (datasource != null) dbSelector.release(datasource);

}

}





---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org