try {
conn = reserve();
conn.setAutoCommit(true);
stmt = conn.createStatement();
if (log.isLoggable(Level.FINE)) log.fine("Running update command '" + command + "'");
int rowsAffected = stmt.executeUpdate(command);
return rowsAffected;
}
catch (SQLException e) {
String str = "SQLException in query '" + command + "' : " + e;
log.warning(str + ": sqlSTATE=" + e.getSQLState() + " we destroy the connection in case it's stale");