This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 28659f92c4c Refactor ShowAuthorityRuleExecutor (#33097)
28659f92c4c is described below
commit 28659f92c4c1fc62c91a07499448cbd734e6758f
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Oct 2 13:32:05 2024 +0800
Refactor ShowAuthorityRuleExecutor (#33097)
---
.../authority/distsql/handler/query/ShowAuthorityRuleExecutor.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/kernel/authority/distsql/handler/src/main/java/org/apache/shardingsphere/authority/distsql/handler/query/ShowAuthorityRuleExecutor.java
b/kernel/authority/distsql/handler/src/main/java/org/apache/shardingsphere/authority/distsql/handler/query/ShowAuthorityRuleExecutor.java
index 56870376088..f5a749f546d 100644
---
a/kernel/authority/distsql/handler/src/main/java/org/apache/shardingsphere/authority/distsql/handler/query/ShowAuthorityRuleExecutor.java
+++
b/kernel/authority/distsql/handler/src/main/java/org/apache/shardingsphere/authority/distsql/handler/query/ShowAuthorityRuleExecutor.java
@@ -47,10 +47,10 @@ public final class ShowAuthorityRuleExecutor implements
DistSQLQueryExecutor<Sho
@Override
public Collection<LocalDataQueryResultRow> getRows(final
ShowAuthorityRuleStatement sqlStatement, final ContextManager contextManager) {
- String users =
rule.getGrantees().stream().map(Grantee::toString).collect(Collectors.joining(";
"));
+ String grantees =
rule.getGrantees().stream().map(Grantee::toString).collect(Collectors.joining(";
"));
String provider =
rule.getConfiguration().getPrivilegeProvider().getType();
Properties props =
rule.getConfiguration().getPrivilegeProvider().getProps().isEmpty() ? new
Properties() : rule.getConfiguration().getPrivilegeProvider().getProps();
- return Collections.singleton(new LocalDataQueryResultRow(users,
provider, props));
+ return Collections.singleton(new LocalDataQueryResultRow(grantees,
provider, props));
}
@Override