<when test="_databaseId == 'mssql'">
s.path LIKE rootsnapshots.path + CAST(rootsnapshots.id AS varchar(15)) + '.%'
</when>
+ <when test="_databaseId == 'mysql'">
+ s.path LIKE concat(rootsnapshots.path, rootsnapshots.id, '.%')
+ </when>
<otherwise>
s.path LIKE rootsnapshots.path || rootsnapshots.id || '.%'
</otherwise>
assertThat(issues).hasSize(2);
assertThat(issues.get(0).getId()).isEqualTo(100);
assertThat(issues.get(1).getId()).isEqualTo(101);
+
+ query = IssueQuery.builder().componentRoots(newArrayList("Filter.java")).build();
+ issues = newArrayList(dao.select(query));
+ assertThat(issues).hasSize(1);
+ assertThat(issues.get(0).getId()).isEqualTo(101);
+
+ query = IssueQuery.builder().componentRoots(newArrayList("not-found")).build();
+ issues = newArrayList(dao.select(query));
+ assertThat(issues).isEmpty();
}
@Test