Skip to content

Commit

Permalink
[#ISSUE-5993][FOLLOWUP] Make some methods public
Browse files Browse the repository at this point in the history
  • Loading branch information
jerqi committed Dec 26, 2024
1 parent 061f24b commit 392dacc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public List<String> getRevokeRoleSQL(String roleName, String revokerType, String
}

@VisibleForTesting
Connection getConnection() throws SQLException {
public Connection getConnection() throws SQLException {
return dataSource.getConnection();
}

Expand Down Expand Up @@ -381,7 +381,7 @@ protected AuthorizationPluginException toAuthorizationPluginException(SQLExcepti
"JDBC authorization plugin fail to execute SQL, error code: %d", se.getErrorCode());
}

void executeUpdateSQL(String sql, String ignoreErrorMsg) {
public void executeUpdateSQL(String sql, String ignoreErrorMsg) {
try (final Connection connection = getConnection()) {
try (final Statement statement = connection.createStatement()) {
statement.executeUpdate(sql);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private JdbcSecurableObject(
this.privileges = privileges;
}

static JdbcSecurableObject create(
public static JdbcSecurableObject create(
String schema, String table, List<AuthorizationPrivilege> privileges) {
String parent = table == null ? null : schema;
String name = table == null ? schema : table;
Expand Down

0 comments on commit 392dacc

Please sign in to comment.