From 0a8fd25fd85b28c804e4c81c90bd35fdb2e57a66 Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 30 Jan 2017 16:38:24 -0500 Subject: Added bitwise AND and XOR DSL for where clauses --- src/main/java/com/iciql/SQLDialectHSQL.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/main/java/com/iciql/SQLDialectHSQL.java') 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 void prepareBitwiseAnd(SQLStatement stat, Query query, A x, A y) { + stat.appendSQL("BITAND("); + query.appendSQL(stat, null, x); + stat.appendSQL(","); + query.appendSQL(stat, x, y); + stat.appendSQL(")"); + } + + @Override + public void prepareBitwiseXor(SQLStatement stat, Query 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 -- cgit v1.2.3