Skip to content
Snippets Groups Projects
Commit 545df950 authored by millmanorama's avatar millmanorama
Browse files

fix getRelationshipCountsPairwise sql for Postgres

parent a88c55d2
No related branches found
No related tags found
No related merge requests found
......@@ -857,7 +857,13 @@ public Map<AccountPair, Long> getRelationshipCountsPairwise(Set<AccountDeviceIns
+ " WHERE (( relationships.account1_id IN (" + buildCSVString + ")) "
+ " and ( relationships.account2_id in( " + buildCSVString + " ))) "
+ (filterSQL.isEmpty() ? "" : " AND " + filterSQL)
+ " group by relationships.account1_id , relationships.account2_id ";
+ " GROUP BY data_source_info.device_id, "
+ " accounts1.account_id, "
+ " account_types1.type_name, "
+ " account_types1.display_name, "
+ " accounts2.account_id, "
+ " account_types2.type_name, "
+ " account_types2.display_name";
CaseDbConnection connection = db.getConnection();
db.acquireSingleUserCaseReadLock();
Statement s = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment