diff --git a/specimen/src/org/labkey/specimen/model/SpecimenRequestEventType.java b/specimen/src/org/labkey/specimen/model/SpecimenRequestEventType.java index 44465008..75b90f8f 100644 --- a/specimen/src/org/labkey/specimen/model/SpecimenRequestEventType.java +++ b/specimen/src/org/labkey/specimen/model/SpecimenRequestEventType.java @@ -41,12 +41,12 @@ private SpecimenRequestEventType() } @Override - public @NotNull SQLFragment getSelectEntityIdAndDescriptionSql() + public @NotNull SQLFragment getSelectEntityIdContainerAndDescriptionSql() { TableInfo table = SpecimenSchema.get().getTableInfoSampleRequestEvent(); - return new SQLFragment("SELECT EntityId, ") - .append(table.getSqlDialect().concatenate("'RowId:'", "CAST(RowId AS VARCHAR)")) - .append(" AS Description FROM ") + return SQLFragment.unsafe("SELECT EntityId, Container, ") + .unsafeAppend(table.getSqlDialect().concatenate("'RowId:'", "CAST(RowId AS VARCHAR)")) + .unsafeAppend(" AS Description FROM ") .append(table, "sre"); } } \ No newline at end of file