Skip to content

Commit 16b6f12

Browse files
committed
Allow TinyTDS/DBLIB mode to pass down :host/:port config options.
1 parent ffab38d commit 16b6f12

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def self.sqlserver_connection(config) #:nodoc:
2222
mode = config[:mode].to_s.downcase.underscore.to_sym
2323
case mode
2424
when :dblib
25-
raise ArgumentError, 'Missing :dataserver configuration.' unless config.has_key?(:dataserver)
2625
require_library_or_gem 'tiny_tds'
2726
warn("TinyTds v0.4.3 or higher required. Using #{TinyTds::VERSION}") unless TinyTds::Client.instance_methods.map(&:to_s).include?("active?")
2827
when :odbc

0 commit comments

Comments
 (0)