fluiddb 0.0.23 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/FluidDb/TinyTds.rb +2 -2
- metadata +1 -1
data/lib/FluidDb/TinyTds.rb
CHANGED
@@ -29,10 +29,10 @@ module FluidDb
|
|
29
29
|
puts "*** Warning - you will normally need to specify both a username and password for the tinytds driver to work correctly."
|
30
30
|
end
|
31
31
|
|
32
|
-
hash = Hash[
|
32
|
+
hash = Hash[:username, username, :password, password, :database, database, :dataserver, dataserver]
|
33
33
|
if !uri.query.nil? then
|
34
34
|
cgi = CGI.parse( uri.query )
|
35
|
-
hash[
|
35
|
+
hash[:timeout] = cgi["timeout"][0].to_i if cgi.has_key?( "timeout" )
|
36
36
|
end
|
37
37
|
|
38
38
|
@connection = ::TinyTds::Client.new( hash )
|