Skip to content

Commit

Permalink
[BugFix] show catalog property for user (backport #49415) (#49834)
Browse files Browse the repository at this point in the history
Co-authored-by: yandongxiao <[email protected]>
  • Loading branch information
mergify[bot] and yandongxiao authored Aug 15, 2024
1 parent 423a577 commit f1715c8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public List<List<String>> getRows(ConnectContext connectContext) {

UserProperty userProperty = authenticationManager.getUserProperty(user);
rows.add(Lists.newArrayList(UserProperty.PROP_MAX_USER_CONNECTIONS, String.valueOf(userProperty.getMaxConn())));
rows.add(Lists.newArrayList(UserProperty.PROP_CATALOG, userProperty.getCatalog()));
rows.add(Lists.newArrayList(UserProperty.PROP_DATABASE, userProperty.getDatabase()));
for (Map.Entry<String, String> entry : userProperty.getSessionVariables().entrySet()) {
rows.add(Lists.newArrayList(String.format("%s.%s", "session", entry.getKey()), entry.getValue()));
Expand Down

0 comments on commit f1715c8

Please sign in to comment.