activerecord-sqlserver-adapter 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG
CHANGED
|
@@ -14,7 +14,7 @@ module ActiveRecord
|
|
|
14
14
|
}.freeze
|
|
15
15
|
|
|
16
16
|
LOST_CONNECTION_MESSAGES = {
|
|
17
|
-
:dblib => [/closed connection/],
|
|
17
|
+
:dblib => [/closed connection/, /dead or not enabled/],
|
|
18
18
|
:odbc => [/link failure/, /server failed/, /connection was already closed/, /invalid handle/i],
|
|
19
19
|
:adonet => [/current state is closed/, /network-related/]
|
|
20
20
|
}.freeze
|
|
@@ -305,7 +305,7 @@ module ActiveRecord
|
|
|
305
305
|
if view_info
|
|
306
306
|
view_info = view_info.with_indifferent_access
|
|
307
307
|
if view_info[:VIEW_DEFINITION].blank? || view_info[:VIEW_DEFINITION].length == 4000
|
|
308
|
-
view_info[:VIEW_DEFINITION] = info_schema_query { select_values("EXEC sp_helptext #{table_name}").join }
|
|
308
|
+
view_info[:VIEW_DEFINITION] = info_schema_query { select_values("EXEC sp_helptext #{quote_table_name(table_name)}").join }
|
|
309
309
|
end
|
|
310
310
|
end
|
|
311
311
|
view_info
|
|
@@ -163,7 +163,7 @@ module ActiveRecord
|
|
|
163
163
|
include Sqlserver::Errors
|
|
164
164
|
|
|
165
165
|
ADAPTER_NAME = 'SQLServer'.freeze
|
|
166
|
-
VERSION = '3.0.
|
|
166
|
+
VERSION = '3.0.7'.freeze
|
|
167
167
|
DATABASE_VERSION_REGEXP = /Microsoft SQL Server\s+(\d{4})/
|
|
168
168
|
SUPPORTED_VERSIONS = [2005,2008].freeze
|
|
169
169
|
|
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: 9
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 3
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 3.0.
|
|
9
|
+
- 7
|
|
10
|
+
version: 3.0.7
|
|
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:
|
|
22
|
+
date: 2011-01-01 00:00:00 -05:00
|
|
23
23
|
default_executable:
|
|
24
24
|
dependencies:
|
|
25
25
|
- !ruby/object:Gem::Dependency
|