Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed a problem with the mysql_database provider #422

Merged
merged 2 commits into from Jan 25, 2014
Merged

fixed a problem with the mysql_database provider #422

merged 2 commits into from Jan 25, 2014

Conversation

stevesaliman
Copy link
Contributor

There are two problems with the query generated in the instances method of the mysql_database provider. They show themselves when we try to remove the default accounts:

  1. The quoting is wrong. We needed single quotes around the %_database part of the query.
  2. I'm not sure what the name parameter inside the array passed to mysql command is intended to do, but it appears to be generating queries with the database name in it, such as show variables like '%_database' information_schema, which won't run.

This pull request fixes both of those issues.

@igalic
Copy link
Contributor

igalic commented Jan 24, 2014

Can you please look at the failing Travis tests? I'm having trouble discerning whether they are failing because of your commit.

@stevesaliman
Copy link
Contributor Author

Sorry about that. There were 2 tests expecting the old queries with the name parameter. The tests appear to be passing now.

I'm still not sure what the name parameter was doing for the mysql method, but the tests don't seem to be any worse off for not having it.

@igalic
Copy link
Contributor

igalic commented Jan 25, 2014

Let's land this and see what happens.

igalic added a commit that referenced this pull request Jan 25, 2014
fixed a quoting problem with the mysql_database provider
@igalic igalic merged commit c747ea7 into puppetlabs:master Jan 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants