http-service: fix sql2o statement leak
commit() will call closeJdbcConnection() which does not clean up statements and causes the later close() to noop
This commit is contained in:
@@ -244,7 +244,7 @@ public class ItemService
|
||||
}
|
||||
|
||||
query.executeBatch();
|
||||
con.commit();
|
||||
con.commit(false);
|
||||
|
||||
return entries;
|
||||
}
|
||||
@@ -320,7 +320,7 @@ public class ItemService
|
||||
}
|
||||
|
||||
q.executeBatch();
|
||||
con.commit();
|
||||
con.commit(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ public class XteaService
|
||||
}
|
||||
|
||||
query.executeBatch();
|
||||
con.commit();
|
||||
con.commit(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user