diff --git a/pkg/resourcemanager/mysql/mysqluser/mysqluser.go b/pkg/resourcemanager/mysql/mysqluser/mysqluser.go index 438552303b0..e43269df65c 100644 --- a/pkg/resourcemanager/mysql/mysqluser/mysqluser.go +++ b/pkg/resourcemanager/mysql/mysqluser/mysqluser.go @@ -143,8 +143,7 @@ func (s *MySqlUserManager) DropUser(ctx context.Context, db *sql.DB, user string if err := helpers.FindBadChars(user); err != nil { return fmt.Errorf("Problem found with username: %v", err) } - tsql := "DROP USER IF EXISTS ?" - _, err := db.ExecContext(ctx, tsql, user) + _, err := db.ExecContext(ctx, "DROP USER IF EXISTS ?", user) return err }