db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@freesurf.ch>
Subject Informix- and SybasePlatform initializeJdbcConnection missing close
Date Wed, 18 Aug 2004 18:39:47 GMT
hi all,

i recently ran findbugs over ojb and found some issues in the above platforms:

this is the informix stuff:

public void initializeJdbcConnection(JdbcConnectionDescriptor jcd, Connection 
conn) throws PlatformException
         super.initializeJdbcConnection(jcd, conn);
             Statement stmt = conn.createStatement();
             stmt.execute("SET LOCK MODE TO WAIT");
             stmt.close();              <<< the close was missing
         catch (SQLException e)
             // ignore it

the statement was not closed. i do not have these dbms installed, so i do not 
know whether the missing close is an error or not.
i expect it to be an error, but i'm not sure.


To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org

View raw message