diff --git a/briar-core/src/net/sf/briar/db/Database.java b/briar-core/src/net/sf/briar/db/Database.java index 43a91fa56..7fd09fa9a 100644 --- a/briar-core/src/net/sf/briar/db/Database.java +++ b/briar-core/src/net/sf/briar/db/Database.java @@ -242,7 +242,7 @@ interface Database { /** * Returns the time at which a connection to the given contact was last - * opened or closed. + * made. *

* Locking: contact read, window read. */ @@ -597,8 +597,7 @@ interface Database { long centre, byte[] bitmap) throws DbException; /** - * Sets the time at which a connection to the given contact was last - * opened or closed. + * Sets the time at which a connection to the given contact was last made. *

* Locking: contact read, window write. */ diff --git a/briar-core/src/net/sf/briar/db/JdbcDatabase.java b/briar-core/src/net/sf/briar/db/JdbcDatabase.java index f907d7a37..0ea09d93d 100644 --- a/briar-core/src/net/sf/briar/db/JdbcDatabase.java +++ b/briar-core/src/net/sf/briar/db/JdbcDatabase.java @@ -1052,7 +1052,7 @@ abstract class JdbcDatabase implements Database { PreparedStatement ps = null; ResultSet rs = null; try { - String sql = "SELECT contactId, name, lastConnected" + String sql = "SELECT c.contactId, name, lastConnected" + " FROM contacts AS c" + " JOIN connectionTimes AS ct" + " ON c.contactId = ct.contactId";