Permalink
Browse files

Adding passing test

SVN: branches/2.1.x@4966
  • Loading branch information...
1 parent 7b1502e commit b2e06e4aa5792b01486a4acec9f1cff6fd49cf1d @ayende ayende committed Mar 23, 2010
Showing with 26 additions and 0 deletions.
  1. +26 −0 src/NHibernate.Test/NHSpecificTest/NH1908/Fixture.cs
@@ -31,5 +31,31 @@ Invoice inv
.List();
}
}
+
+ [Test]
+ public void QueryPropertyInBothFilterAndQuery_WithWith()
+ {
+ using (ISession s = OpenSession())
+ {
+ s.EnableFilter("validity")
+ .SetParameter("date", DateTime.Now);
+
+ s.CreateQuery(@"
+ select
+ inv.ID
+ from
+ Invoice inv
+ join inv.Category cat with cat.ValidUntil > :now
+ left join cat.ParentCategory parentCat with parentCat.ID != :myInt
+ where
+ inv.ID = :invId
+ and inv.Issued < :now
+ ")
+ .SetDateTime("now", DateTime.Now)
+ .SetInt32("invId", -999)
+ .SetInt32("myInt", -888)
+ .List();
+ }
+ }
}
}

0 comments on commit b2e06e4

Please sign in to comment.