Skip to content

Commit d71a6ad

Browse files
NH-3488 - fix dialect dependent failures, fourth round, to be squashed. And reference for a specific Firebird bug justifying an ignore.
1 parent 0a36eb7 commit d71a6ad

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ public void SimpleInsert()
6262
[Test]
6363
public void SimpleInsertFromAggregate()
6464
{
65+
if (!Dialect.SupportsTemporaryTables)
66+
{
67+
Assert.Ignore("Cannot perform multi-table inserts using dialect not supporting temp tables.");
68+
}
69+
6570
var data = new TestData(this);
6671
data.Prepare();
6772

src/NHibernate.Test/NHSpecificTest/NH3488/LinqBulkManipulationFixture.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public void InsertWithSelectListUsingJoins()
377377

378378
s.Query<Human>().Where(x => x.Mother.Mother != null)
379379
.Insert().As(x => new Animal { Description = x.Description, BodyWeight = x.BodyWeight });
380-
380+
381381
s.Transaction.Commit();
382382
s.Close();
383383
}
@@ -386,9 +386,10 @@ public void InsertWithSelectListUsingJoins()
386386
[Test]
387387
public void InsertToComponent()
388388
{
389-
if(Dialect is FirebirdDialect)
389+
if (Dialect is FirebirdDialect)
390390
{
391-
Assert.Ignore("This test seems to trigger a recursive insert into DB with Firebird.");
391+
// https://firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref25-dml-insert.html#fblangref25-dml-insert-select-unstable
392+
Assert.Ignore("This test triggers the Firebird \"unstable cursor"\" bug, a recursive insert of inserted rows.");
392393
}
393394

394395
using (var s = OpenSession())

0 commit comments

Comments
 (0)