RE: Bug in JDBCAppender

2003-09-08 Thread Milind Rao
To: [EMAIL PROTECTED] Subject: Bug in JDBCAppender There is a bug in JDBCAppender's execute method. If there is a SQLException, the connection is not closed. The best place to close a connection/statement is in finally. What's happening now, is I'm getting a connection leak every time an SQL

Bug in JDBCAppender

2003-09-05 Thread Milind Rao
There is a bug in JDBCAppender's execute method. If there is a SQLException, the connection is not closed. The best place to close a connection/statement is in finally. What's happening now, is I'm getting a connection leak every time an SQL exception happens. BTW, the log also gets lost.

RE: Bug in JDBCAppender

2003-09-05 Thread Charles Hudak
in a webapp). -Original Message- From: Milind Rao [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 14:09 To: [EMAIL PROTECTED] Subject: Bug in JDBCAppender There is a bug in JDBCAppender's execute method. If there is a SQLException, the connection is not closed. The best place to close