<commit_before>﻿using NUnit.Framework;

namespace NHibernate.Test.NHSpecificTest.NH1831
{
   [TestFixture]
   public class Fixture : BugTestCase
   {
      [Test]
      public void CorrectPrecedenceForBitwiseOperators()
      {
         using (var s = OpenSession())
         {
            const string hql = @"SELECT dt FROM DocumentType dt WHERE dt.systemAction & :sysAct = :sysAct ";

            s.CreateQuery(hql).SetParameter("sysAct", SystemAction.Denunciation).List();
         }
      }
   }
}<commit_msg>NH-1831 - Ignore tests for Oracle as it does not support &, |, ^ as bitwise operators.<commit_after>﻿using NHibernate.Dialect;
using NUnit.Framework;

namespace NHibernate.Test.NHSpecificTest.NH1831
{
	[TestFixture]
	public class Fixture : BugTestCase
	{
		protected override bool AppliesTo(Dialect.Dialect dialect)
		{
			return !(dialect is Oracle8iDialect);
		}

		[Test]
		public void CorrectPrecedenceForBitwiseOperators()
		{
			using (var s = OpenSession())
			using (s.BeginTransaction())
			{
				const string hql = @"SELECT dt FROM DocumentType dt WHERE dt.systemAction & :sysAct = :sysAct ";

				s.CreateQuery(hql).SetParameter("sysAct", SystemAction.Denunciation).List();
			}
		}
	}
}
{'fraction_non_alphanumeric': 0.10726072607260725, 'fraction_numerical': 0.010726072607260726, 'mean_word_length': 3.3790613718411553, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5212191', 'n_tokens_mistral': 430, 'n_tokens_neox': 379, 'n_words': 87}