Skip to content

Commit

Permalink
Merge pull request #47 from IBM-Swift/lowercasedPostgres
Browse files Browse the repository at this point in the history
fix: Postgres check lowercased
  • Loading branch information
Andrew-Lees11 authored Mar 28, 2018
2 parents 1d905f6 + 65e9f2b commit bb8d0d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftKueryPostgreSQL/PostgreSQLConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class PostgreSQLConnection: Connection {

private static func extractConnectionParameters(url: URL) -> String {
var result = ""
if let scheme = url.scheme, scheme == "Postgres", let host = url.host, let port = url.port {
if let scheme = url.scheme, scheme.lowercased() == "postgres", let host = url.host, let port = url.port {
result = "host = \(host) port = \(port)"
if let user = url.user {
result += " user = \(user)"
Expand Down

0 comments on commit bb8d0d2

Please sign in to comment.