From: Fernando N. (J. <tr...@fi...> - 2014-09-23 13:27:33
|
FbConnection.ClearPool (cnn) doesn't work ----------------------------------------- Key: DNET-568 URL: http://tracker.firebirdsql.org/browse/DNET-568 Project: .NET Data provider Issue Type: Bug Components: ADO.NET Provider Affects Versions: 4.5.1.0 Reporter: Fernando Nájera Assignee: Jiri Cincura I think there's an error in the implementation of FbConnection.ClearPool(cnn). It is currently implemented as FbConnectionPoolManager.Instance.ClearPool(connection.ConnectionString); I think it should be FbConnectionPoolManager.Instance.ClearPool(connection.NormalizedConnectionString); FbConnectionPoolManager keeps internally a dictionary based on normalized cnn strings, and if you pass just the cnn string, it won't find the corresponding pool, and the call to ClearPool() will be basically a NOP. The workaround is to call ClearAllPools() instead, but that does clean more than requested/needed. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |