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

Decode username on read #214

Merged
merged 1 commit into from
Apr 1, 2020
Merged

Decode username on read #214

merged 1 commit into from
Apr 1, 2020

Conversation

jamwaffles
Copy link
Contributor

Decodes connection string URL component so usernames with @ symbols in them are handled properly.

Closes #152

sqlx-core/src/mysql/connection.rs Outdated Show resolved Hide resolved
@jamwaffles jamwaffles requested a review from mehcode March 31, 2020 22:05
@mehcode mehcode merged commit 3a997f0 into launchbadge:master Apr 1, 2020
@mehcode
Copy link
Member

mehcode commented Apr 1, 2020

@jamwaffles Check 2a9774d when you have a moment. I had to change .as_str() to .as_ref().

Thanks for the contribution!

@jamwaffles
Copy link
Contributor Author

Ah, so that's the magic method call 😁. This is my first encounter with Cow so thanks for bearing with me. Is there a timeline on release for this feature by the way?

@mehcode
Copy link
Member

mehcode commented Apr 2, 2020

Now sounds about good. 😄

@jamwaffles
Copy link
Contributor Author

Awesome! Thank you for being super quick with this! Really appreciate it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Usernames should be percent encoded.
2 participants