Skip to content

Commit 2a72bfd

Browse files
fix .append() chain
1 parent 2dce39c commit 2a72bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LDK/src/org/labkey/ldk/LDKServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public List<String> validateContainerScopedTables(boolean onlyReportErrors)
258258
}
259259

260260
// group data based on pseudoPK and effective container (ie. workbooks go with parent) and return duplicates
261-
SQLFragment sql = new SQLFragment("SELECT ").append(pseudoPk.getValueSql("t")).append(" as keyField, count(*) as total FROM " + ti.getFromSQL("t") +
261+
SQLFragment sql = new SQLFragment("SELECT ").append(pseudoPk.getValueSql("t")).append(" as keyField, count(*) as total FROM ").append(ti.getFromSQL("t")).append(
262262
" LEFT JOIN core.containers c ON t.container = c.entityid " +
263263
" GROUP BY ").append(pseudoPk.getValueSql("t")).append(", CASE WHEN c.type = 'workbook' THEN c.parent ELSE c.entityid END " +
264264
" HAVING count(*) > 1");

0 commit comments

Comments
 (0)