mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 06:09:55 +01:00
Fixed an ambiguous column name in getRetentionUpdate().
This commit is contained in:
@@ -1502,8 +1502,9 @@ abstract class JdbcDatabase implements Database<Connection> {
|
|||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
try {
|
try {
|
||||||
String sql = "SELECT timestamp, localVersion"
|
String sql = "SELECT timestamp, localVersion"
|
||||||
+ " FROM messages JOIN retentionVersions"
|
+ " FROM messages AS m"
|
||||||
+ " WHERE contactId = ? AND localVersion > localAcked"
|
+ " JOIN retentionVersions AS rv"
|
||||||
|
+ " WHERE rv.contactId = ? AND localVersion > localAcked"
|
||||||
+ " ORDER BY timestamp LIMIT ?";
|
+ " ORDER BY timestamp LIMIT ?";
|
||||||
ps = txn.prepareStatement(sql);
|
ps = txn.prepareStatement(sql);
|
||||||
ps.setInt(1, c.getInt());
|
ps.setInt(1, c.getInt());
|
||||||
|
|||||||
Reference in New Issue
Block a user