|
From: David A. <da...@ri...> - 2005-02-01 21:29:54
|
If the query to be executed does not perform a write operation, Query::executeQuery issues conn.setAutoCommit(false). With some JDBC providers, this causes an exception when the connection is closed but a commit has not performed. With the call to setAutoCommit(false), when the result set and statement are closed, no commit is performed and the subsequent attempt to close the connection fails. Am I doing something wrong? (note: the code includes the comment "for postgis streaming, but I don't believe it hurts anyone" above the line where it sets autoCommit) -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.3 - Release Date: 1/31/2005 |