You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.options.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.
The text was updated successfully, but these errors were encountered:
description: 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.
=>
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.options.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.
Submitted by: Fernando Nájera (fernandonajera)
Is duplicated by DNET575
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.options.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.
The text was updated successfully, but these errors were encountered: