Skip to content

Commit

Permalink
Update pkg/resourcemanager/mysql/mysqluser/mysqluser.go
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Fellows <dave.fellows@microsoft.com>
  • Loading branch information
buhongw7583c and davefellows authored Jun 18, 2020
1 parent a29835d commit 7b6c24d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/resourcemanager/mysql/mysqluser/mysqluser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7b6c24d

Please sign in to comment.