Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Update role.go (#5888)
Volodymyr Bunchukd6f289fd41a7
diff --git a/backend/plugin/db/clickhouse/role.go b/backend/plugin/db/clickhouse/role.goindex 06ac8dfb34..5dd530922d 100644--- a/backend/plugin/db/clickhouse/role.go+++ b/backend/plugin/db/clickhouse/role.go@@ -64,7 +64,7 @@ func (driver *Driver) getInstanceRoles(ctx context.Context) ([]*storepb.Instance// Uses single quote instead of backtick to escape because this is a string// instead of table (which should use backtick instead). MySQL actually works// in both ways. On the other hand, some other MySQL compatible engines might not (OceanBase in this case).- grantQuery := fmt.Sprintf("SHOW GRANTS FOR %s", user)+ grantQuery := fmt.Sprintf("SHOW GRANTS FOR `%s`", user)grantRows, err := driver.db.QueryContext(ctx,grantQuery,)