Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20715/NHibernate.Test
Modified Files:
ABCProxyTest.cs App.config hibernate.cfg.xml TestCase.cs
Log Message:
Added querysubstitutions so all hql works with mssql.
Fixed up some failures in TearDown because of open sessions hanging
around.
Index: ABCProxyTest.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ABCProxyTest.cs,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** ABCProxyTest.cs 5 May 2005 19:27:52 -0000 1.17
--- ABCProxyTest.cs 6 May 2005 16:01:54 -0000 1.18
***************
*** 278,281 ****
--- 278,282 ----
s.Delete(b);
t.Commit();
+ s.Close();
}
Index: hibernate.cfg.xml
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/hibernate.cfg.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** hibernate.cfg.xml 27 Aug 2004 04:21:22 -0000 1.5
--- hibernate.cfg.xml 6 May 2005 16:01:55 -0000 1.6
***************
*** 9,16 ****
<property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
<property name="use_outer_join">true</property>
! <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>
<!-- mapping files -->
! <mapping file="ABC.hbm.xml" />
! <mapping resource="NHibernate.DomainModel.Simple.hbm.xml" assembly="NHibernate.DomainModel" />
</session-factory>
--- 9,22 ----
<property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
<property name="use_outer_join">true</property>
! <!--
! these are different than the values in app.config so I can verify these
! are being picked up
! -->
! <property name="query.substitutions">true 1, false 0, yes 1, no 0</property>
<!-- mapping files -->
! <!-- are now optional
! <mapping file="ABC.hbm.xml" />
! <mapping resource="NHibernate.DomainModel.Simple.hbm.xml" assembly="NHibernate.DomainModel" />
! -->
</session-factory>
Index: TestCase.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TestCase.cs,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** TestCase.cs 5 May 2005 19:27:53 -0000 1.15
--- TestCase.cs 6 May 2005 16:01:55 -0000 1.16
***************
*** 4,11 ****
using System.Reflection;
- using NHibernate.DomainModel;
-
using NHibernate.Cfg;
- using NHibernate.Dialect;
using NHibernate.Tool.hbm2ddl;
--- 4,8 ----
Index: App.config
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/App.config,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** App.config 1 Mar 2005 16:24:41 -0000 1.11
--- App.config 6 May 2005 16:01:55 -0000 1.12
***************
*** 23,26 ****
--- 23,30 ----
value="NHibernate.Connection.DriverConnectionProvider"
/>
+ <add
+ key="hibernate.query.substitutions"
+ value="true 1, false 0, yes 'Y', no 'N'"
+ />
<!--
|