You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org> on 2005/04/13 21:57:23 UTC
[jira] Assigned: (IBATISNET-32) Improve how CloseConnection() tests for closeable connection
[ http://issues.apache.org/jira/browse/IBATISNET-32?page=history ]
Gilles Bayon reassigned IBATISNET-32:
-------------------------------------
Assign To: Gilles Bayon
> 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
>
> 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