activerecord-sqlserver-adapter 2.3.16 → 2.3.17
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
CHANGED
@@ -13,9 +13,8 @@ module ActiveRecord
|
|
13
13
|
mode = config[:mode].to_s.downcase.underscore.to_sym
|
14
14
|
case mode
|
15
15
|
when :dblib
|
16
|
-
raise ArgumentError, 'Missing :dataserver configuration.' unless config.has_key?(:dataserver)
|
17
16
|
require_library_or_gem 'tiny_tds'
|
18
|
-
warn("TinyTds v0.4.3 or higher required. Using #{TinyTds::VERSION}") unless TinyTds::Client.instance_methods.include?("active?")
|
17
|
+
warn("TinyTds v0.4.3 or higher required. Using #{TinyTds::VERSION}") unless TinyTds::Client.instance_methods.map(&:to_s).include?("active?")
|
19
18
|
when :odbc
|
20
19
|
require_library_or_gem 'odbc' unless defined?(ODBC)
|
21
20
|
require 'active_record/connection_adapters/sqlserver_adapter/core_ext/odbc'
|
@@ -148,7 +147,7 @@ module ActiveRecord
|
|
148
147
|
class SQLServerAdapter < AbstractAdapter
|
149
148
|
|
150
149
|
ADAPTER_NAME = 'SQLServer'.freeze
|
151
|
-
VERSION = '2.3.
|
150
|
+
VERSION = '2.3.17'.freeze
|
152
151
|
DATABASE_VERSION_REGEXP = /Microsoft SQL Server\s+(\d{4})/
|
153
152
|
SUPPORTED_VERSIONS = [2000,2005,2008].freeze
|
154
153
|
LIMITABLE_TYPES = ['string','integer','float','char','nchar','varchar','nvarchar'].to_set.freeze
|
@@ -813,6 +812,8 @@ module ActiveRecord
|
|
813
812
|
encoding = config[:encoding].present? ? config[:encoding] : nil
|
814
813
|
TinyTds::Client.new({
|
815
814
|
:dataserver => config[:dataserver],
|
815
|
+
:host => config[:host],
|
816
|
+
:port => config[:port],
|
816
817
|
:username => config[:username],
|
817
818
|
:password => config[:password],
|
818
819
|
:database => config[:database],
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-sqlserver-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 33
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 2.3.
|
9
|
+
- 17
|
10
|
+
version: 2.3.17
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ken Collins
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2011-04-
|
22
|
+
date: 2011-04-15 00:00:00 -04:00
|
23
23
|
default_executable:
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|