We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94607b5 commit 35f3ec1Copy full SHA for 35f3ec1
sqlx-mysql/src/options/parse.rs
@@ -38,7 +38,11 @@ impl MySqlConnectOptions {
38
39
let path = url.path().trim_start_matches('/');
40
if !path.is_empty() {
41
- options = options.database(path);
+ options = options.database(
42
+ &percent_decode_str(path)
43
+ .decode_utf8()
44
+ .map_err(Error::config)?,
45
+ );
46
}
47
48
for (key, value) in url.query_pairs().into_iter() {
0 commit comments