[ http://issues.apache.org/jira/browse/IBATISNET-32?page=history ] Gilles Bayon resolved IBATISNET-32: -----------------------------------
Resolution: Fixed Fix Version: DataMapper 1.2 > Improve how CloseConnection() tests for closeable connection > ------------------------------------------------------------ > > Key: IBATISNET-32 > URL: http://issues.apache.org/jira/browse/IBATISNET-32 > Project: iBatis for .NET > Type: Improvement > Versions: DataMapper 1.1 > Environment: [assembly: AssemblyVersion("1.1.458")] > Reporter: Ron Grabowski > Assignee: Gilles Bayon > Priority: Trivial > Fix For: DataMapper 1.2 > > Line 183 contains the following code before trying to close a connection: > if ( (_connection != null) && (_connection.State == ConnectionState.Open) ) > It may be better to check for a non-closed connection to handle other > connection states like ConnectionState.Broken: > if ( (_connection != null) && (_connection.State != ConnectionState.Closed) ) > There's also an extra semi-colon at the end of line 190; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira