From: Paul H. <pha...@us...> - 2005-03-14 22:41:50
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6385/nhibernate/src/NHibernate/Impl Modified Files: BatcherImpl.cs Log Message: Addresses disposal of IDbCommand as per NH-217 Index: BatcherImpl.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/BatcherImpl.cs,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** BatcherImpl.cs 6 Mar 2005 12:44:42 -0000 1.18 --- BatcherImpl.cs 14 Mar 2005 22:41:16 -0000 1.19 *************** *** 282,291 **** public void CloseCommand( IDbCommand cmd, IDataReader reader ) { - //TODO: fix this up a little bit - don't like it having the same name and just - // turning around and calling a diff method. CloseQueryCommand( cmd, reader ); - // CloseQueryCommand contains the logging so we don't need to call it - // here - putting it in CloseQueryCommand(IDbCommand) will ensure it always gets called. - //LogClosePreparedCommands(); } --- 282,286 ---- *************** *** 329,332 **** --- 324,331 ---- { // no equiv to the java code in here + if ( cmd != null ) + { + cmd.Dispose(); + } } catch( Exception e ) |