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

Use mysql.ParseDSN func instead of url.Parse #1891

Merged
merged 1 commit into from
Oct 12, 2016
Merged

Use mysql.ParseDSN func instead of url.Parse #1891

merged 1 commit into from
Oct 12, 2016

Conversation

sparrc
Copy link
Contributor

@sparrc sparrc commented Oct 12, 2016

Required for all PRs:

  • CHANGELOG.md updated (we recommend not updating this until the PR has been approved by a maintainer)
  • Sign CLA (if not already signed)
  • README.md updated (if adding a new plugin)

closes #870
closes #1842

@sparrc sparrc force-pushed the cs870 branch 2 times, most recently from 7026f54 to 245ba5a Compare October 12, 2016 12:06
@sparrc
Copy link
Contributor Author

sparrc commented Oct 12, 2016

@maksadbek can you review please?

@dgnorton
Copy link
Contributor

👍 lgtm

The MySQL DB driver has it's own DSN parsing function. Previously we
were using the url.Parse function, but this causes problems because a
valid MySQL DSN can be an invalid http URL, namely when using some
special characters in the password.

This change uses the MySQL DB driver's builtin ParseDSN function and
applies a timeout parameter natively via that.

Another benefit of this change is that we fail earlier if given an
invalid MySQL DSN.

closes #870
closes #1842
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants