Skip to content

Commit

Permalink
AB#914 Fixing attachments list pagination.
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco del Castillo committed Mar 18, 2024
1 parent b542a7e commit e265e15
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ public Attachment map(ResultSet rs, StatementContext ctx) throws SQLException {
a.setDescription(MapperUtils.getOptionalString(rs, "attachments_description"));
a.setClassification(MapperUtils.getOptionalString(rs, "attachments_classification"));
a.setCaption(MapperUtils.getOptionalString(rs, "attachments_caption"));

if (MapperUtils.containsColumnNamed(rs, "totalCount")) {
ctx.define("totalCount", rs.getInt("totalCount"));
}

return a;
}
}

0 comments on commit e265e15

Please sign in to comment.