Commit 1053d617 authored by Giant's avatar Giant
Browse files

Fixed semi-critical bug in dbDriver, causing where groups to not work as expected.

parent 96e77c8b
......@@ -66,7 +66,8 @@ public class H2DeleteQuery implements DeleteQuery {
@Override
public Group where(Group.Type t, String field, String value, Group.ValueType vT) {
Group g = new H2Group(this.db);
g.add(t, field, value, vT);
g.setType(t);
g.add(field, value, vT);
return this.where(g);
}
......
......@@ -118,7 +118,8 @@ public class H2SelectQuery implements SelectQuery {
@Override
public Group where(Group.Type t, String field, String value, Group.ValueType vT) {
Group g = new H2Group(this.db);
g.add(t, field, value, vT);
g.setType(t);
g.add(field, value, vT);
return this.where(g);
}
......
......@@ -82,7 +82,8 @@ public class H2UpdateQuery implements UpdateQuery {
@Override
public Group where(Group.Type t, String field, String value, Group.ValueType vT) {
Group g = new H2Group(this.db);
g.add(t, field, value, vT);
g.setType(t);
g.add(field, value, vT);
return this.where(g);
}
......
......@@ -66,7 +66,8 @@ public class MySQLDeleteQuery implements DeleteQuery {
@Override
public Group where(Group.Type t, String field, String value, Group.ValueType vT) {
Group g = new MySQLGroup(this.db);
g.add(t, field, value, vT);
g.setType(t);
g.add(field, value, vT);
return this.where(g);
}
......
......@@ -131,7 +131,8 @@ public class MySQLSelectQuery implements SelectQuery {
@Override
public Group where(Group.Type t, String field, String value, Group.ValueType vT) {
Group g = new MySQLGroup(this.db);
g.add(t, field, value, vT);
g.setType(t);
g.add(field, value, vT);
return this.where(g);
}
......
......@@ -82,7 +82,8 @@ public class MySQLUpdateQuery implements UpdateQuery {
@Override
public Group where(Group.Type t, String field, String value, Group.ValueType vT) {
Group g = new MySQLGroup(this.db);
g.add(t, field, value, vT);
g.setType(t);
g.add(field, value, vT);
return this.where(g);
}
......
......@@ -66,7 +66,8 @@ public class SQLiteDeleteQuery implements DeleteQuery {
@Override
public Group where(Group.Type t, String field, String value, Group.ValueType vT) {
Group g = new SQLiteGroup(this.db);
g.add(t, field, value, vT);
g.setType(t);
g.add(field, value, vT);
return this.where(g);
}
......
......@@ -118,7 +118,8 @@ public class SQLiteSelectQuery implements SelectQuery {
@Override
public Group where(Group.Type t, String field, String value, Group.ValueType vT) {
Group g = new SQLiteGroup(this.db);
g.add(t, field, value, vT);
g.setType(t);
g.add(field, value, vT);
return this.where(g);
}
......
......@@ -81,7 +81,8 @@ public class SQLiteUpdateQuery implements UpdateQuery {
@Override
public Group where(Group.Type t, String field, String value, Group.ValueType vT) {
Group g = new SQLiteGroup(this.db);
g.add(t, field, value, vT);
g.setType(t);
g.add(field, value, vT);
return this.where(g);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment