fluiddb 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/FluidDb/Pgsql.rb +2 -2
- metadata +1 -1
data/lib/FluidDb/Pgsql.rb
CHANGED
@@ -13,8 +13,8 @@ module FluidDb
|
|
13
13
|
host = uri.host
|
14
14
|
dbname = uri.path.sub( "/", "" )
|
15
15
|
|
16
|
-
hash = ["host", host, "dbname", dbname]
|
17
|
-
hash["port"] = uri.
|
16
|
+
hash = Hash["host", host, "dbname", dbname]
|
17
|
+
hash["port"] = uri.port unless uri.port.nil?
|
18
18
|
hash["user"] = uri.user unless uri.user.nil?
|
19
19
|
hash["password"] = uri.password unless uri.password.nil?
|
20
20
|
|