From: <fab...@us...> - 2009-06-20 03:21:51
|
Revision: 4493 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4493&view=rev Author: fabiomaulo Date: 2009-06-20 03:21:45 +0000 (Sat, 20 Jun 2009) Log Message: ----------- Minor Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/HQL/Ast/SqlTranslationFixture.cs Modified: trunk/nhibernate/src/NHibernate.Test/HQL/Ast/SqlTranslationFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/HQL/Ast/SqlTranslationFixture.cs 2009-06-20 00:34:26 UTC (rev 4492) +++ trunk/nhibernate/src/NHibernate.Test/HQL/Ast/SqlTranslationFixture.cs 2009-06-20 03:21:45 UTC (rev 4493) @@ -19,7 +19,6 @@ const string query = "from SimpleClass s where (case when s.IntValue > 0 then (cast(s.IntValue as long) * :pAValue) else 1 end) > 0"; Assert.DoesNotThrow(() => GetSql(query)); - // This query fail because parenthesis on the math operation and does not fail in the old parser const string queryWithoutParen = "from SimpleClass s where (case when s.IntValue > 0 then cast(s.IntValue as long) * :pAValue else 1 end) > 0"; Assert.DoesNotThrow(() => GetSqlWithClassicParser(queryWithoutParen)); Assert.DoesNotThrow(() => GetSql(queryWithoutParen)); @@ -28,11 +27,11 @@ [Test] public void Union() { - string query = "from SimpleClass s where s.id in ((select s1.id from SimpleClass s1) union (select s2.id from SimpleClass s2))"; + const string query = "from SimpleClass s where s.id in ((select s1.id from SimpleClass s1) union (select s2.id from SimpleClass s2))"; Assert.DoesNotThrow(() => GetSqlWithClassicParser(query)); - query = "from SimpleClass s where s.id in (select s1.id from SimpleClass s1 union select s2.id from SimpleClass s2)"; - Assert.DoesNotThrow(() => GetSql(query)); + const string queryForAntlr = "from SimpleClass s where s.id in (select s1.id from SimpleClass s1 union select s2.id from SimpleClass s2)"; + Assert.DoesNotThrow(() => GetSql(queryForAntlr)); } } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |