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
3131 {
3232 protected override bool AppliesTo ( Dialect . Dialect dialect )
3333 {
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+ }
3638 }
3739
3840 protected override void Configure ( Configuration configuration )
3941 {
4042 base . Configure ( configuration ) ;
41- if ( Dialect is MsSql2000Dialect )
43+ using ( var cp = ConnectionProviderFactory . NewConnectionProvider ( cfg . Properties ) )
4244 {
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+ }
4550 }
4651 }
4752
You can’t perform that action at this time.
0 commit comments