Skip to content

Commit bb8d0d2

Browse files
Merge pull request #47 from IBM-Swift/lowercasedPostgres
fix: Postgres check lowercased
2 parents 1d905f6 + 65e9f2b commit bb8d0d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftKueryPostgreSQL/PostgreSQLConnection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public class PostgreSQLConnection: Connection {
9292

9393
private static func extractConnectionParameters(url: URL) -> String {
9494
var result = ""
95-
if let scheme = url.scheme, scheme == "Postgres", let host = url.host, let port = url.port {
95+
if let scheme = url.scheme, scheme.lowercased() == "postgres", let host = url.host, let port = url.port {
9696
result = "host = \(host) port = \(port)"
9797
if let user = url.user {
9898
result += " user = \(user)"

0 commit comments

Comments
 (0)