massUpdate.select("select distinct m.snapshot_id as sId, s.root_snapshot_id as rootSid " +
"from project_measures m " +
"inner join snapshots s on m.snapshot_id = s.id " +
- "where m.analysis_uuid is null " +
- "union " +
- "select distinct m.snapshot_id as sId, s.root_snapshot_id as rootSid " +
- "from project_measures m " +
- "inner join snapshots s on m.snapshot_id=s.id " +
"where m.analysis_uuid is null"
);
massUpdate.update("update project_measures set analysis_uuid=? where snapshot_id = ? and analysis_uuid is null");
assertThat(rows.get("analysisUuid")).isEqualTo(expectedAnalysisUuid);
}
- private String insertSnapshot(long id, String uuid, String qualifier, @Nullable Long rootSnapshotId) {
+ private void insertSnapshot(long id, String uuid, String qualifier, @Nullable Long rootSnapshotId) {
int depth;
switch (qualifier) {
case "TRK":
"ROOT_SNAPSHOT_ID", rootSnapshotId != null ? valueOf(rootSnapshotId) : null,
"QUALIFIER", qualifier,
"DEPTH", valueOf(depth));
- return uuid;
}
private void insertMeasure(long id, long snapshotId) {