mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 14:49:53 +01:00
Use getLong() to avoid remote possibility of overflow.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user