fix issue in directChildrenOf api for postgresql (#16093)

This commit is contained in:
sonika-shah 2024-05-01 15:15:00 +05:30 committed by GitHub
parent dd176b7da1
commit b7c54c9ab5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1774,7 +1774,7 @@ public interface CollectionDAO {
if (!nullOrEmpty(directChildrenOf)) {
condition =
String.format(
" %s AND fqnHash = CONCAT('%s', '.', MD5( IF(name LIKE '%%.%%', CONCAT('\"', name, '\"'), name))) ",
" %s AND fqnHash = CONCAT('%s', '.', MD5(CASE WHEN name LIKE '%%.%%' THEN CONCAT('\"', name, '\"') ELSE name END)) ",
condition, FullyQualifiedName.buildHash(directChildrenOf));
}
@ -1789,7 +1789,7 @@ public interface CollectionDAO {
if (!nullOrEmpty(directChildrenOf)) {
condition =
String.format(
" %s AND fqnHash = CONCAT('%s', '.', MD5( IF(name LIKE '%%.%%', CONCAT('\"', name, '\"'), name))) ",
" %s AND fqnHash = CONCAT('%s', '.', MD5(CASE WHEN name LIKE '%%.%%' THEN CONCAT('\"', name, '\"') ELSE name END)) ",
condition, FullyQualifiedName.buildHash(directChildrenOf));
}
@ -1804,7 +1804,7 @@ public interface CollectionDAO {
if (!nullOrEmpty(directChildrenOf)) {
condition =
String.format(
" %s AND fqnHash = CONCAT('%s', '.', MD5( IF(name LIKE '%%.%%', CONCAT('\"', name, '\"'), name))) ",
" %s AND fqnHash = CONCAT('%s', '.', MD5(CASE WHEN name LIKE '%%.%%' THEN CONCAT('\"', name, '\"') ELSE name END)) ",
condition, FullyQualifiedName.buildHash(directChildrenOf));
}