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()); ps.setInt(2, DELIVERED.getValue());
rs = ps.executeQuery(); rs = ps.executeQuery();
rs.next(); rs.next();
long total = rs.getInt(1); long total = rs.getLong(1);
rs.close(); rs.close();
ps.close(); ps.close();
return total; return total;