You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Jakob Braeuchi <jb...@freesurf.ch> on 2004/08/18 20:39:47 UTC
Informix- and SybasePlatform initializeJdbcConnection missing close
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);
try
{
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.
jakob
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org