mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 14:19:53 +01:00
Removed an unnecessary join.
This commit is contained in:
@@ -2929,11 +2929,8 @@ abstract class JdbcDatabase implements Database<Connection> {
|
|||||||
+ " JOIN groupVisibilities AS gv"
|
+ " JOIN groupVisibilities AS gv"
|
||||||
+ " ON m.groupId = gv.groupId"
|
+ " ON m.groupId = gv.groupId"
|
||||||
+ " AND cg.contactId = gv.contactId"
|
+ " AND cg.contactId = gv.contactId"
|
||||||
+ " JOIN retentionVersions AS rv"
|
|
||||||
+ " ON cg.contactId = rv.contactId"
|
|
||||||
+ " WHERE messageId = ?"
|
+ " WHERE messageId = ?"
|
||||||
+ " AND cg.contactId = ?"
|
+ " AND cg.contactId = ?";
|
||||||
+ " AND timestamp >= retention";
|
|
||||||
ps = txn.prepareStatement(sql);
|
ps = txn.prepareStatement(sql);
|
||||||
ps.setBytes(1, m.getBytes());
|
ps.setBytes(1, m.getBytes());
|
||||||
ps.setInt(2, c.getInt());
|
ps.setInt(2, c.getInt());
|
||||||
|
|||||||
Reference in New Issue
Block a user