Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public Map<String, Set<Privilege>> determineCurrentObjectPrivileges(
OID_DATA_TYPE,
val(schema)
)),
objects.isEmpty() ? noCondition() : PG_CLASS.RELNAME.in(objects),
isAllMode ? noCondition() : PG_CLASS.RELNAME.in(objects),
// See https://www.postgresql.org/docs/current/catalog-pg-class.html#CATALOG-PG-CLASS
PG_CLASS.RELKIND.in(
"r", // Ordinary Table
Expand All @@ -324,7 +324,7 @@ public Map<String, Set<Privilege>> determineCurrentObjectPrivileges(
)
.fetchMap(PG_CLASS.RELNAME, isOwnerCondition);

if (objects.isEmpty()) {
if (isAllMode) {
objectExistenceAndOwnershipMap.putAll(existingObjectsOwner);
} else {
for (var object : objects) {
Expand Down