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
@@ -1,5 +1,10 @@
1
1
 
2
- * master *
2
+ * 3.0.7 *
3
+
4
+ * Properly quote table names when reflecting on views.
5
+
6
+ * Add "dead or not enabled" to :dblib's lost connection messages.
7
+
3
8
 
4
9
  * 3.0.6 *
5
10
 
@@ -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.6'.freeze
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: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 6
10
- version: 3.0.6
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: 2010-11-17 00:00:00 -05:00
22
+ date: 2011-01-01 00:00:00 -05:00
23
23
  default_executable:
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency