File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1919using System . ComponentModel ;
2020using System . Data ;
2121using System . Data . Common ;
22- using System . Globalization ;
23- using System . Text ;
2422
2523using FirebirdSql . Data . Common ;
2624
@@ -44,7 +42,15 @@ public static void ClearPool(FbConnection connection)
4442 if ( connection == null )
4543 throw new ArgumentNullException ( nameof ( connection ) ) ;
4644
47- FbConnectionPoolManager . Instance . ClearPool ( connection . _options ) ;
45+ FbConnectionPoolManager . Instance . ClearPool ( connection . ConnectionOptions ) ;
46+ }
47+
48+ public static void ClearPool ( string connectionString )
49+ {
50+ if ( connectionString == null )
51+ throw new ArgumentNullException ( nameof ( connectionString ) ) ;
52+
53+ FbConnectionPoolManager . Instance . ClearPool ( new FbConnectionString ( connectionString ) ) ;
4854 }
4955
5056 #endregion
You can’t perform that action at this time.
0 commit comments