Skip to content

Commit 7ca6874

Browse files
committed
FooBarTest.cs: Avoid use of .elements in HQL, syntax which is supposed to not be supported since NH 2.1.
1 parent 54d0100 commit 7ca6874

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/NHibernate.Test/Legacy/FooBarTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4826,12 +4826,12 @@ public void AutoFlush()
48264826
{
48274827
foo.Bytes = GetBytes("osama");
48284828
Assert.AreEqual(1,
4829-
s.CreateQuery("from foo in class NHibernate.DomainModel.Foo where 111 in foo.Bytes.elements").List()
4830-
.Count, "autoflush collection update");
4829+
s.CreateQuery("from foo in class NHibernate.DomainModel.Foo where 111 in elements(foo.Bytes)")
4830+
.List().Count, "autoflush collection update");
48314831
foo.Bytes[0] = 69;
48324832
Assert.AreEqual(1,
4833-
s.CreateQuery("from foo in class NHibernate.DomainModel.Foo where 69 in foo.Bytes.elements").List().
4834-
Count, "autoflush collection update");
4833+
s.CreateQuery("from foo in class NHibernate.DomainModel.Foo where 69 in elements(foo.Bytes)")
4834+
.List().Count, "autoflush collection update");
48354835
}
48364836

48374837
s.Delete(foo);

0 commit comments

Comments
 (0)