Skip to content

Commit d3aaa7a

Browse files
committed
TinyTDS/DBLIB is the default connection mode.
1 parent 5eb9c03 commit d3aaa7a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
* Azure compatibility.
55

6-
* TinyTDS enhancements for lost connections.
6+
* TinyTDS enhancements for lost connections. Default connection mode.
77

88

99
* 3.0.10 *

RUNNING_UNIT_TESTS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ databases. Use an empty password for said user.
1111
The connection files make certain assumptions. For instance, the ODBC
1212
connection assumes you have a DSN setup that matches the name of the default
1313
database names. Remember too you have to set an environment variable for the
14-
DSN of the adapter, see the ODBC connection information for details.
14+
DSN of the adapter, see the connection.rb file that matches your connection
15+
mode for details.
1516

1617

1718
= Cloning The Repos
@@ -65,4 +66,3 @@ on a local branch of our remote tracking branch.
6566
* Misc Date/Time object instance matches when using ODBC mode.
6667

6768

68-

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Base
1818

1919
def self.sqlserver_connection(config) #:nodoc:
2020
config = config.dup.symbolize_keys!
21-
config.reverse_merge! :mode => :odbc, :host => 'localhost', :username => 'sa', :password => ''
21+
config.reverse_merge! :mode => :dblib, :host => 'localhost', :username => 'sa', :password => ''
2222
mode = config[:mode].to_s.downcase.underscore.to_sym
2323
case mode
2424
when :dblib

0 commit comments

Comments
 (0)