cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kesha" <ke...@cosite.com>
Subject SQLTransformer
Date Fri, 08 Jun 2001 19:27:16 GMT
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


Mime
View raw message