You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
s.Find("from Baz baz left join baz.FooToGlarch join baz.FooSet");
1819
1819
s.Find("from Baz baz left join baz.FooToGlarch join fetch baz.FooSet foo left join fetch foo.TheFoo");
1820
1820
1821
-
//TODO: resume h2.0.3 - line 1613
1821
+
// foo.Boolean = true
1822
+
list=s.Find("from foo in class NHibernate.DomainModel.Foo where foo.String='osama bin laden' and foo.Boolean = 1 order by foo.String asc, foo.Component.Count desc");
1823
+
Assert.AreEqual(0,list.Count,"empty query");
1824
+
IEnumerableenumer=s.Enumerable("from foo in class NHibernate.DomainModel.Foo where foo.String='osama bin laden' order by foo.String asc, foo.Component.Count desc");
// the following test is disabled for databases with no subselects...also for Interbase (not sure why) - h2.0.3
1834
+
// also HSQLDialect, MckoiDialect, SAPDBDialect, PointbaseDialect
1835
+
if(!(dialectisDialect.MySQLDialect))
1836
+
{
1837
+
// add an !InterbaseDialect wrapper around list and assert
1838
+
list=s.Find("from foo in class NHibernate.DomainModel.Foo where ? = some foo.Component.ImportantDates.elements",newDateTime(DateTime.Now.Year,DateTime.Now.Month,DateTime.Now.Day),NHibernate.DateTime);
1839
+
Assert.AreEqual(2,list.Count,"componenet query");
1840
+
}
1841
+
1842
+
// WAS: 3 in h2.0.3 - there's a null value at index 2 that is not in the db with hibernate - it is a missing index
1843
+
// in the db
1844
+
list=s.Find("from foo in class NHibernate.DomainModel.Foo where size(foo.Component.ImportantDates) = 4");
1845
+
Assert.AreEqual(2,list.Count,"component query");
1846
+
list=s.Find("from foo in class Foo where 0 = size(foo.Component.ImportantDates)");
1847
+
Assert.AreEqual(0,list.Count,"component query");
1848
+
list=s.Find("from foo in class Foo where exists elements(foo.Component.ImportantDates)");
1849
+
Assert.AreEqual(2,list.Count,"component query");
1850
+
s.Find("from foo in class Foo where not exists (from bar in class Bar where bar.id = foo.id)");
1851
+
1852
+
s.Find("select foo.TheFoo from foo in class Foo where foo = some(select x from x in class Foo where x.Long > foo.TheFoo.Long)");
1853
+
s.Find("from foo in class Foo where foo = some(select x from x in class Foo where x.Long > foo.TheFoo.Long) and foo.TheFoo.String='baz'");
1854
+
s.Find("from foo in class Foo where foo.TheFoo.String='baz' and foo = some(select x from x in class Foo where x.Long>foo.TheFoo.Long)");
1855
+
s.Find("from foo in class Foo where foo = some(select x from x in class Foo where x.Long > foo.TheFoo.Long)");
1856
+
1857
+
s.Enumerable("select foo.String, foo.Date, foo.TheFoo.String, foo.id from foo in class Foo, baz in class Baz where foo in elements(baz.FooArray) and foo.String like 'foo'");
0 commit comments