diff options
Diffstat (limited to 'src/main/java/com/iciql/SQLDialectHSQL.java')
-rw-r--r-- | src/main/java/com/iciql/SQLDialectHSQL.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/com/iciql/SQLDialectHSQL.java b/src/main/java/com/iciql/SQLDialectHSQL.java index 74a3dcc..43e6588 100644 --- a/src/main/java/com/iciql/SQLDialectHSQL.java +++ b/src/main/java/com/iciql/SQLDialectHSQL.java @@ -147,4 +147,23 @@ public class SQLDialectHSQL extends SQLDialectDefault { buff.append(')');
stat.setSQL(buff.toString());
}
+
+ @Override
+ public <T, A> void prepareBitwiseAnd(SQLStatement stat, Query<T> query, A x, A y) {
+ stat.appendSQL("BITAND(");
+ query.appendSQL(stat, null, x);
+ stat.appendSQL(",");
+ query.appendSQL(stat, x, y);
+ stat.appendSQL(")");
+ }
+
+ @Override
+ public <T, A> void prepareBitwiseXor(SQLStatement stat, Query<T> query, A x, A y) {
+ stat.appendSQL("BITXOR(");
+ query.appendSQL(stat, null, x);
+ stat.appendSQL(",");
+ query.appendSQL(stat, x, y);
+ stat.appendSQL(")");
+ }
+
}
\ No newline at end of file |