change author filter to an exact match

* required for listing user projects
This commit is contained in:
Jake Potrebic 2021-03-27 14:26:17 -07:00
parent d96eced54a
commit aa5905db3b
No known key found for this signature in database
GPG Key ID: 7C58557EC9C421F8

View File

@ -31,7 +31,7 @@ public class ProjectAuthorFilter implements Filter<ProjectAuthorFilterInstance>
@Override
public void createSql(StringBuilder sb, SqlStatement<?> q) {
sb.append(" AND ").append("p.owner_name").append(" LIKE ").append("'%' || :ownerName || '%'");
sb.append(" AND ").append("p.owner_name").append(" = ").append(":ownerName");
q.bind("ownerName", ownerName);
}
}