Use getLong() to avoid remote possibility of overflow.

This commit is contained in:
akwizgran
2021-07-13 12:04:09 +01:00
parent f556bc7249
commit 8f392b4599

View File

@@ -2331,7 +2331,7 @@ abstract class JdbcDatabase implements Database<Connection> {
ps.setInt(2, DELIVERED.getValue());
rs = ps.executeQuery();
rs.next();
long total = rs.getInt(1);
long total = rs.getLong(1);
rs.close();
ps.close();
return total;