Skip to content

Commit 7a976b3

Browse files
NH-4004 - Disabling Bulk manipulations for dialects not supporting temporary tables.
1 parent 6350d20 commit 7a976b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/NHibernate.Test/Hql/Ast/BulkManipulation.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ public ISession OpenNewSession()
1717
return OpenSession();
1818
}
1919

20+
protected override bool AppliesTo(Dialect.Dialect dialect)
21+
{
22+
// Some classes are mapped with table joins, which requires temporary tables for DML to work.
23+
return Dialect.SupportsTemporaryTables;
24+
}
25+
2026
#region Non-exists
2127

2228
[Test]

0 commit comments

Comments
 (0)