Skip to content

Commit 8aaa63d

Browse files
committed
NH-3807 - Tests only apply to dialects that support batching.
1 parent c8e47b0 commit 8aaa63d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/NHibernate.Driver.SqlClient/Driver/SqlClientDriver.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ protected override void InitializeParameter(DbParameter dbParam, string name, Sq
9191

9292
System.Type IEmbeddedBatcherFactoryProvider.BatcherFactoryClass
9393
{
94+
#if !NETSTANDARD2_0
9495
get { return typeof(SqlClientBatchingBatcherFactory); }
96+
#else
97+
get { return typeof(NonBatchingBatcherFactory); }
98+
#endif
9599
}
96100

97101
#endregion

src/NHibernate.Test/NHSpecificTest/NH2055/Fixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class Fixture : BugTestCase
1313
{
1414
protected override bool AppliesTo(NHibernate.Dialect.Dialect dialect)
1515
{
16-
return (dialect is Dialect.MsSql2000Dialect);
16+
return (dialect is Dialect.MsSql2000Dialect) && dialect.SupportsSqlBatches;
1717
}
1818

1919
protected override void Configure(Configuration configuration)

src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private IAuxiliaryDatabaseObject CreateHighLowScript(IEnumerable<System.Type> en
3636

3737
protected override bool AppliesTo(Dialect.Dialect dialect)
3838
{
39-
return (dialect is MsSql2000Dialect);
39+
return (dialect is MsSql2000Dialect) && dialect.SupportsSqlBatches;
4040
}
4141

4242
[Test]

0 commit comments

Comments
 (0)