From: Michael D. <mik...@us...> - 2004-09-01 00:10:38
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17963/NHibernate.Test Modified Files: FooBarTest.cs NHibernate.Test-1.1.csproj PerformanceTest.cs Log Message: Beginning to isolate the Types so I can figure out what is ADO.NET driver problems and which are NHibernate problems. NH works great with Ms Sql 2000, but not so great with MySql & Oracle. Index: PerformanceTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/PerformanceTest.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PerformanceTest.cs 16 Aug 2004 05:15:10 -0000 1.8 --- PerformanceTest.cs 1 Sep 2004 00:10:28 -0000 1.9 *************** *** 244,253 **** { //SELECT s.id_, s.name, s.address, s.count_, s.date_, s.other ! keys[j] = (long)reader[0]; simplesFromReader[j] = new Simple(); simplesFromReader[j].Name = (string)reader[1]; simplesFromReader[j].Address = (string)reader[2]; ! simplesFromReader[j].Count = (int)reader[3]; ! simplesFromReader[j].Date = (DateTime)reader[4]; if(reader.IsDBNull(5)==false) --- 244,253 ---- { //SELECT s.id_, s.name, s.address, s.count_, s.date_, s.other ! keys[j] = Convert.ToInt64( reader[0] ); simplesFromReader[j] = new Simple(); simplesFromReader[j].Name = (string)reader[1]; simplesFromReader[j].Address = (string)reader[2]; ! simplesFromReader[j].Count = Convert.ToInt32( reader[3] ); ! simplesFromReader[j].Date = Convert.ToDateTime( reader[4] ); if(reader.IsDBNull(5)==false) Index: FooBarTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/FooBarTest.cs,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** FooBarTest.cs 31 Aug 2004 21:24:37 -0000 1.60 --- FooBarTest.cs 1 Sep 2004 00:10:12 -0000 1.61 *************** *** 890,894 **** { ISession s = sessions.OpenSession(); ! ITransaction t = s.BeginTransaction(); Foo[] foos = new Foo[] { null, new Foo() }; s.Save(foos[1]); --- 890,894 ---- { ISession s = sessions.OpenSession(); ! // ITransaction t = s.BeginTransaction(); Foo[] foos = new Foo[] { null, new Foo() }; s.Save(foos[1]); *************** *** 949,953 **** 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)"); } --- 949,958 ---- 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')"); ! ! // TODO: figure out why this is throwing an ORA-1722 error ! if( !( dialect is Dialect.Oracle9Dialect) && !( dialect is Dialect.OracleDialect) ) ! { ! 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)"); ! } } *************** *** 988,992 **** s.Delete(baz2); s.Delete(foos[1]); ! t.Commit(); s.Close(); --- 993,997 ---- s.Delete(baz2); s.Delete(foos[1]); ! // t.Commit(); s.Close(); Index: NHibernate.Test-1.1.csproj =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHibernate.Test-1.1.csproj,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** NHibernate.Test-1.1.csproj 31 Aug 2004 20:37:28 -0000 1.39 --- NHibernate.Test-1.1.csproj 1 Sep 2004 00:10:28 -0000 1.40 *************** *** 317,320 **** --- 317,325 ---- /> <File + RelPath = "NHSpecificTest\BasicDoubleFixture.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "NHSpecificTest\BasicObjectFixture.cs" SubType = "Code" |