Skip to content

Commit

Permalink
dont set read timeout to 0 if it is set to nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Selin committed Jul 15, 2014
1 parent 67edd8d commit e0fbd10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sequel/adapters/vertica.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def connect(server)
:port => opts[:port],
:schema => opts[:schema],
:database => opts[:database],
:read_timeout => opts[:read_timeout].to_i,
:read_timeout => opts[:read_timeout].nil? ? nil : opts[:read_timeout].to_i,
:ssl => opts[:ssl]
)
end
Expand Down

0 comments on commit e0fbd10

Please sign in to comment.