From e3df592a3074fc3a1b335a11205fb71a2ecb5e43 Mon Sep 17 00:00:00 2001 From: Julius de Bruijn Date: Fri, 12 Jun 2020 18:23:12 +0200 Subject: [PATCH] Fix sql server checks in connection info --- src/connector/connection_info.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connector/connection_info.rs b/src/connector/connection_info.rs index 42e5a76e6..24e2db0bd 100644 --- a/src/connector/connection_info.rs +++ b/src/connector/connection_info.rs @@ -57,9 +57,10 @@ impl ConnectionInfo { }); } } - _ => { + s if s.starts_with("jdbc:sqlserver") || s.starts_with("sqlserver") => { return Ok(ConnectionInfo::Mssql(MssqlUrl::new(url_str)?)); } + _ => (), } }