Skip to content

Commit 251b562

Browse files
authored
Merge pull request #784 from tvandelooij/tvandelooij-patch-1
URL decode database name for MSSQL
2 parents 46e2cdb + 585a935 commit 251b562

File tree

1 file changed

+1
-1
lines changed
  • connectorx/src/sources/mssql

1 file changed

+1
-1
lines changed

connectorx/src/sources/mssql/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub fn mssql_config(url: &Url) -> Config {
5959
}
6060
config.port(url.port().unwrap_or(1433));
6161
// remove the leading "/"
62-
config.database(&url.path()[1..]);
62+
config.database(decode(&url.path()[1..])?.to_owned());
6363
// Using SQL Server authentication.
6464
#[allow(unused)]
6565
let params: HashMap<String, String> = url.query_pairs().into_owned().collect();

0 commit comments

Comments
 (0)