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 19
19
using System . ComponentModel ;
20
20
using System . Data ;
21
21
using System . Data . Common ;
22
- using System . Globalization ;
23
- using System . Text ;
24
22
25
23
using FirebirdSql . Data . Common ;
26
24
@@ -44,7 +42,15 @@ public static void ClearPool(FbConnection connection)
44
42
if ( connection == null )
45
43
throw new ArgumentNullException ( nameof ( connection ) ) ;
46
44
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 ) ) ;
48
54
}
49
55
50
56
#endregion
You can’t perform that action at this time.
0 commit comments