HHH-6682 add support for oracle "bitand" function to Oracle Dialect

This commit is contained in:
brmeyer 2012-09-18 01:33:41 -04:00
parent 9f720b2d73
commit cb60b0259c
1 changed files with 3 additions and 3 deletions

View File

@ -53,9 +53,9 @@ public class MathTest extends BaseCoreFunctionalTestCase {
s = openSession();
s.beginTransaction();
int value1 = (int)s.createQuery( "select bitand(m.value,0) from MathEntity m where m.id=" + id ).uniqueResult();
int value2 = (int)s.createQuery( "select bitand(m.value,2) from MathEntity m where m.id=" + id ).uniqueResult();
int value3 = (int)s.createQuery( "select bitand(m.value,3) from MathEntity m where m.id=" + id ).uniqueResult();
int value1 = ((Integer) s.createQuery( "select bitand(m.value,0) from MathEntity m where m.id=" + id ).uniqueResult()).intValue();
int value2 = ((Integer) s.createQuery( "select bitand(m.value,2) from MathEntity m where m.id=" + id ).uniqueResult()).intValue();
int value3 = ((Integer )s.createQuery( "select bitand(m.value,3) from MathEntity m where m.id=" + id ).uniqueResult()).intValue();
s.getTransaction().commit();
s.close();