Added integer parameter support
This commit is contained in:
parent
010c3b97f4
commit
b2da583fa1
@ -50,6 +50,9 @@ public class DatabaseProvider {
|
|||||||
if (p instanceof String) {
|
if (p instanceof String) {
|
||||||
query.setString(index, (String) p);
|
query.setString(index, (String) p);
|
||||||
}
|
}
|
||||||
|
else if (p instanceof Integer) {
|
||||||
|
query.setInt(index, (int) p);
|
||||||
|
}
|
||||||
else if (p instanceof Boolean) {
|
else if (p instanceof Boolean) {
|
||||||
query.setBoolean(index, (boolean) p);
|
query.setBoolean(index, (boolean) p);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user