File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
src/NHibernate.Test/NHSpecificTest/Futures Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -31,17 +31,22 @@ public class FallbackFixture : FutureFixture
31
31
{
32
32
protected override bool AppliesTo ( Dialect . Dialect dialect )
33
33
{
34
- var cp = ConnectionProviderFactory . NewConnectionProvider ( cfg . Properties ) ;
35
- return ! cp . Driver . SupportsMultipleQueries ;
34
+ using ( var cp = ConnectionProviderFactory . NewConnectionProvider ( cfg . Properties ) )
35
+ {
36
+ return ! cp . Driver . SupportsMultipleQueries ;
37
+ }
36
38
}
37
39
38
40
protected override void Configure ( Configuration configuration )
39
41
{
40
42
base . Configure ( configuration ) ;
41
- if ( Dialect is MsSql2000Dialect )
43
+ using ( var cp = ConnectionProviderFactory . NewConnectionProvider ( cfg . Properties ) )
42
44
{
43
- configuration . Properties [ Environment . ConnectionDriver ] =
44
- typeof ( TestDriverThatDoesntSupportQueryBatching ) . AssemblyQualifiedName ;
45
+ if ( cp . Driver is SqlClientDriver )
46
+ {
47
+ configuration . Properties [ Environment . ConnectionDriver ] =
48
+ typeof ( TestDriverThatDoesntSupportQueryBatching ) . AssemblyQualifiedName ;
49
+ }
45
50
}
46
51
}
47
52
You can’t perform that action at this time.
0 commit comments