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();
|
query.executeBatch();
|
||||||
con.commit();
|
con.commit(false);
|
||||||
|
|
||||||
return entries;
|
return entries;
|
||||||
}
|
}
|
||||||
@@ -320,7 +320,7 @@ public class ItemService
|
|||||||
}
|
}
|
||||||
|
|
||||||
q.executeBatch();
|
q.executeBatch();
|
||||||
con.commit();
|
con.commit(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ public class XteaService
|
|||||||
}
|
}
|
||||||
|
|
||||||
query.executeBatch();
|
query.executeBatch();
|
||||||
con.commit();
|
con.commit(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user