From: <dar...@us...> - 2009-06-10 05:07:43
|
Revision: 4441 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4441&view=rev Author: darioquintana Date: 2009-06-10 05:07:21 +0000 (Wed, 10 Jun 2009) Log Message: ----------- Test applies to MsSQLServer 2005/2008 Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH645/HQLFunctionFixture.cs Modified: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH645/HQLFunctionFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH645/HQLFunctionFixture.cs 2009-06-10 04:45:36 UTC (rev 4440) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH645/HQLFunctionFixture.cs 2009-06-10 05:07:21 UTC (rev 4441) @@ -11,11 +11,18 @@ [TestFixture] public class HQLFunctionFixture : TestCase { + private bool appliesToThisDialect = true; + protected override string MappingsAssembly { get { return "NHibernate.Test"; } } + protected override bool AppliesTo(Dialect.Dialect dialect) + { + return appliesToThisDialect; + } + protected override IList Mappings { get { return new[] {"HQL.Animal.hbm.xml", "HQL.MaterialResource.hbm.xml"}; } @@ -23,7 +30,10 @@ protected override void Configure(Configuration configuration) { - configuration.SetProperty(Environment.Dialect, typeof (CustomDialect).AssemblyQualifiedName); + if (Dialect is MsSql2005Dialect) + configuration.SetProperty(Environment.Dialect, typeof (CustomDialect).AssemblyQualifiedName); + else + appliesToThisDialect = false; } /// <summary> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |