Fix having UPPER in query of groups retrieval

(cherry picked from commit 4681447ba9)
master
Saad Sahibjan 3 years ago committed by Pahansith
parent 9a86d2fe06
commit 6393276503

@ -73,10 +73,10 @@ public abstract class AbstractGroupDAOImpl implements GroupDAO {
String sql = "SELECT ID, DESCRIPTION, GROUP_NAME, OWNER, STATUS, PARENT_PATH FROM DM_GROUP " String sql = "SELECT ID, DESCRIPTION, GROUP_NAME, OWNER, STATUS, PARENT_PATH FROM DM_GROUP "
+ "WHERE TENANT_ID = ?"; + "WHERE TENANT_ID = ?";
if (StringUtils.isNotBlank(request.getGroupName())) { if (StringUtils.isNotBlank(request.getGroupName())) {
sql += " AND UPPER(GROUP_NAME) LIKE ?"; sql += " AND GROUP_NAME LIKE ?";
} }
if (StringUtils.isNotBlank(request.getOwner())) { if (StringUtils.isNotBlank(request.getOwner())) {
sql += " AND UPPER(OWNER) LIKE ?"; sql += " AND OWNER LIKE ?";
} }
if (StringUtils.isNotBlank(request.getStatus())) { if (StringUtils.isNotBlank(request.getStatus())) {
sql += " AND STATUS = ?"; sql += " AND STATUS = ?";

Loading…
Cancel
Save