From: Peter S. <sz...@us...> - 2004-08-04 17:28:03
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2156 Modified Files: FooBarTest.cs Log Message: CollectionsInSelect runs Index: FooBarTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/FooBarTest.cs,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** FooBarTest.cs 2 Aug 2004 04:30:36 -0000 1.51 --- FooBarTest.cs 4 Aug 2004 17:27:53 -0000 1.52 *************** *** 845,849 **** [Test] ! [Ignore("Test is failing because sub selects are not working. http://jira.nhibernate.org:8080/browse/NH-69")] public void CollectionsInSelect() { --- 845,849 ---- [Test] ! //[Ignore("Test is failing because sub selects are not working. http://jira.nhibernate.org:8080/browse/NH-69")] public void CollectionsInSelect() { *************** *** 906,913 **** s.Find("select count(*) from Bar as bar, bar.Component.Glarch.ProxyArray as g where g.id in indices(bar.Baz.FooArray)"); s.Find("select max( elements(bar.Baz.FooArray) ) from Bar as bar, bar.Component.Glarch.ProxyArray as g where g.id in indices(bar.Baz.FooArray)"); ! // TODO: subselects - this is the only thing causing tests to fail... ! // s.Find("select count(*) from Bar as bar where 1 in (from bar.Component.Glarch.ProxyArray g where g.Name='foo')"); ! // s.Find("select count(*) from Bar as bar where 1 in (from g in bar.Component.Glarch.ProxyArray.elements where g.Name='foo')"); ! // s.Find("select count(*) from Bar as bar left outer join bar.Component.Glarch.ProxyArray as pg where 1 in (from g in bar.Component.Glarch.ProxyArray)"); } --- 906,912 ---- s.Find("select count(*) from Bar as bar, bar.Component.Glarch.ProxyArray as g where g.id in indices(bar.Baz.FooArray)"); s.Find("select max( elements(bar.Baz.FooArray) ) from Bar as bar, bar.Component.Glarch.ProxyArray as g where g.id in indices(bar.Baz.FooArray)"); ! s.Find("select count(*) from Bar as bar where 1 in (from bar.Component.Glarch.ProxyArray g where g.Name='foo')"); ! s.Find("select count(*) from Bar as bar where 1 in (from g in bar.Component.Glarch.ProxyArray.elements where g.Name='foo')"); ! s.Find("select count(*) from Bar as bar left outer join bar.Component.Glarch.ProxyArray as pg where 1 in (from g in bar.Component.Glarch.ProxyArray)"); } |