Skip to content

Commit

Permalink
PMM-11341 Bad naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriCtvrtka committed Nov 1, 2023
1 parent da4b10e commit 67ca78e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/serviceinfobroker/service_info_broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ func (sib *ServiceInfoBroker) getPostgreSQLInfo(ctx context.Context, dsn string,
res.Version = version

var databaseList []string
databaseCountQuery := "SELECT /* agent='serviceinfobroker' */ datname FROM pg_database WHERE datallowconn = true AND datistemplate = false AND has_database_privilege(current_user, datname, 'connect')" //nolint:lll
rows, err := db.QueryContext(ctx, databaseCountQuery)
databaseListQuery := "SELECT /* agent='serviceinfobroker' */ datname FROM pg_database WHERE datallowconn = true AND datistemplate = false AND has_database_privilege(current_user, datname, 'connect')" //nolint:lll
rows, err := db.QueryContext(ctx, databaseListQuery)

Check failure on line 231 in agent/serviceinfobroker/service_info_broker.go

View workflow job for this annotation

GitHub Actions / Checks

Rows/Stmt was not closed (sqlclosecheck)
if err != nil {
res.Error = err.Error()
return &res
Expand Down

0 comments on commit 67ca78e

Please sign in to comment.