From: <dar...@us...> - 2009-02-08 22:23:11
|
Revision: 4075 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4075&view=rev Author: darioquintana Date: 2009-02-08 21:35:24 +0000 (Sun, 08 Feb 2009) Log Message: ----------- Test passing for dialect supporting SupportsIfExistsBeforeTableName (Postgres) Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1443/Fixture.cs Modified: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1443/Fixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1443/Fixture.cs 2009-02-08 19:50:43 UTC (rev 4074) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1443/Fixture.cs 2009-02-08 21:35:24 UTC (rev 4075) @@ -15,8 +15,15 @@ var sb = new StringBuilder(500); su.Execute(x => sb.AppendLine(x), false, false, true); string script = sb.ToString(); - Assert.That(script, Text.Contains("drop table nhibernate.dbo.Aclass")); + + + if (Dialect.Dialect.GetDialect(cfg.Properties).SupportsIfExistsBeforeTableName) + Assert.That(script, Text.Contains("drop table if exists nhibernate.dbo.Aclass")); + else + Assert.That(script, Text.Contains("drop table nhibernate.dbo.Aclass")); + Assert.That(script, Text.Contains("create table nhibernate.dbo.Aclass")); + } [Test] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |