Skip to content

Commit f5994c3

Browse files
committed
ignore firebird since it has issues with comments containing apostrophes
1 parent 0bf6e35 commit f5994c3

File tree

1 file changed

+9
-2
lines changed
  • src/NHibernate.Test/NHSpecificTest/NH1171

1 file changed

+9
-2
lines changed

src/NHibernate.Test/NHSpecificTest/NH1171/Fixture.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
using NHibernate.Cfg;
2+
using NHibernate.Dialect;
23
using NUnit.Framework;
34

45
namespace NHibernate.Test.NHSpecificTest.NH1171
56
{
67
[TestFixture]
7-
public class Fixture: BugTestCase
8+
public class Fixture : BugTestCase
89
{
910
protected override void Configure(NHibernate.Cfg.Configuration configuration)
1011
{
@@ -14,6 +15,9 @@ protected override void Configure(NHibernate.Cfg.Configuration configuration)
1415
[Test]
1516
public void SupportSQLQueryWithComments()
1617
{
18+
if (Dialect is FirebirdDialect)
19+
Assert.Ignore("Firebird has issues with comments containing apostrophes");
20+
1721
string sql =
1822
@"
1923
SELECT id
@@ -25,7 +29,7 @@ ORDER BY Name
2529
";
2630
using (ISession s = OpenSession())
2731
{
28-
var q =s.CreateSQLQuery(sql);
32+
var q = s.CreateSQLQuery(sql);
2933
q.SetString("name", "Evgeny Potashnik");
3034
q.List();
3135
}
@@ -34,6 +38,9 @@ ORDER BY Name
3438
[Test]
3539
public void ExecutedContainsComments()
3640
{
41+
if (Dialect is FirebirdDialect)
42+
Assert.Ignore("Firebird has issues with comments containing apostrophes");
43+
3744
string sql =
3845
@"
3946
SELECT id

0 commit comments

Comments
 (0)