Migration v57 setInt parameter trivial fix
The first parameter for setInt in sql API starts from 1. See: http://docs.oracle.com/javase/6/docs/api/java/sql/PreparedStatement.html#setInt(int,int) Change-Id: I725e9ea30e78a5b0adaa1b3b58bf30e02cd3d759
This commit is contained in:
parent
ca4db4eea0
commit
fab4ab6153
@ -125,7 +125,7 @@ public class Schema_57 extends SchemaVersion {
|
||||
}
|
||||
|
||||
AccountGroup batch = db.accountGroups().get(sc.batchUsersGroupId);
|
||||
stmt.setInt(0, sc.batchUsersGroupId.get());
|
||||
stmt.setInt(1, sc.batchUsersGroupId.get());
|
||||
if (batch != null
|
||||
&& db.accountGroupMembers().byGroup(sc.batchUsersGroupId).toList().isEmpty()
|
||||
&& stmt.executeQuery().first() != false) {
|
||||
|
Loading…
Reference in New Issue
Block a user