File tree Expand file tree Collapse file tree 1 file changed +21
-14
lines changed
src/NHibernate.Test/NHSpecificTest/NH1831 Expand file tree Collapse file tree 1 file changed +21
-14
lines changed Original file line number Diff line number Diff line change 1
- using NUnit . Framework ;
1
+ using NHibernate . Dialect ;
2
+ using NUnit . Framework ;
2
3
3
4
namespace NHibernate . Test . NHSpecificTest . NH1831
4
5
{
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
+ }
14
13
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
+ }
19
26
}
You can’t perform that action at this time.
0 commit comments