mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-24 09:50:01 +00:00
fix issue in directChildrenOf api for postgresql (#16093)
This commit is contained in:
parent
dd176b7da1
commit
b7c54c9ab5
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user