Skip to content

Commit 9c3a4c7

Browse files
committed
NH-1831 - Ignore tests for Oracle as it does not support &, |, ^ as bitwise operators.
1 parent a81d68c commit 9c3a4c7

File tree

1 file changed

+21
-14
lines changed
  • src/NHibernate.Test/NHSpecificTest/NH1831

1 file changed

+21
-14
lines changed
Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
1-
using NUnit.Framework;
1+
using NHibernate.Dialect;
2+
using NUnit.Framework;
23

34
namespace NHibernate.Test.NHSpecificTest.NH1831
45
{
5-
[TestFixture]
6-
public class Fixture : BugTestCase
7-
{
8-
[Test]
9-
public void CorrectPrecedenceForBitwiseOperators()
10-
{
11-
using (var s = OpenSession())
12-
{
13-
const string hql = @"SELECT dt FROM DocumentType dt WHERE dt.systemAction & :sysAct = :sysAct ";
6+
[TestFixture]
7+
public class Fixture : BugTestCase
8+
{
9+
protected override bool AppliesTo(Dialect.Dialect dialect)
10+
{
11+
return !(dialect is Oracle8iDialect);
12+
}
1413

15-
s.CreateQuery(hql).SetParameter("sysAct", SystemAction.Denunciation).List();
16-
}
17-
}
18-
}
14+
[Test]
15+
public void CorrectPrecedenceForBitwiseOperators()
16+
{
17+
using (var s = OpenSession())
18+
using (s.BeginTransaction())
19+
{
20+
const string hql = @"SELECT dt FROM DocumentType dt WHERE dt.systemAction & :sysAct = :sysAct ";
21+
22+
s.CreateQuery(hql).SetParameter("sysAct", SystemAction.Denunciation).List();
23+
}
24+
}
25+
}
1926
}

0 commit comments

Comments
 (0)